Bug 121

Summary: Fix some new GCC 4.2 const warnings
Product: ns-3 Reporter: Gustavo J. A. M. Carneiro <gjcarneiro>
Component: coreAssignee: ns-bugs <ns-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: pre-release   
Hardware: All   
OS: All   
Attachments: possible patch
another patch (simpler version)

Description Gustavo J. A. M. Carneiro 2007-12-17 08:29:50 UTC
When we have char *foo = {"bar", ...}, now GCC 4.2 gives a new warning:

warning: deprecated conversion from string constant to 'char*'
Comment 1 Gustavo J. A. M. Carneiro 2007-12-17 08:30:17 UTC
Created attachment 98 [details]
possible patch
Comment 2 Gustavo J. A. M. Carneiro 2007-12-17 09:01:04 UTC
Created attachment 99 [details]
another patch (simpler version)
Comment 3 Gustavo J. A. M. Carneiro 2007-12-17 09:56:26 UTC
I committed the second patch (less intrusive).  I'll revert if someone disagrees.