From: Kevin P. Fleming Date: Thu, 7 Aug 2008 16:11:17 +0000 (+0000) Subject: work around a bug in gcc-4.2.3 that incorrectly ignores the casting away of 'const... X-Git-Tag: 1.4.22-rc1~19 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=24dedd7016dd2f24cbd5dc5fc886966e5898d2cf;p=thirdparty%2Fasterisk.git work around a bug in gcc-4.2.3 that incorrectly ignores the casting away of 'const' for pointers when the developer knows it is safe to do so git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@136458 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 09a6304450..b8e74d5e22 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -952,9 +952,9 @@ static int create_dirpath(char *dest, int len, const char *context, const char * return 0; } -static const char *mbox(int id) +static char *mbox(int id) { - static const char *msgs[] = { + static char *msgs[] = { "INBOX", "Old", "Work",