[asterisk-commits] kpfleming: branch 1.4 r136458 - /branches/1.4/apps/app_voicemail.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Aug 7 11:11:19 CDT 2008


Author: kpfleming
Date: Thu Aug  7 11:11:17 2008
New Revision: 136458

URL: http://svn.digium.com/view/asterisk?view=rev&rev=136458
Log:
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


Modified:
    branches/1.4/apps/app_voicemail.c

Modified: branches/1.4/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_voicemail.c?view=diff&rev=136458&r1=136457&r2=136458
==============================================================================
--- branches/1.4/apps/app_voicemail.c (original)
+++ branches/1.4/apps/app_voicemail.c Thu Aug  7 11:11:17 2008
@@ -952,9 +952,9 @@
 	return 0;
 }
 
-static const char *mbox(int id)
-{
-	static const char *msgs[] = {
+static char *mbox(int id)
+{
+	static char *msgs[] = {
 		"INBOX",
 		"Old",
 		"Work",




More information about the asterisk-commits mailing list