Bug 121 - Fix some new GCC 4.2 const warnings
Fix some new GCC 4.2 const warnings
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: core
pre-release
All All
: P3 normal
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-12-17 08:29 UTC by Gustavo J. A. M. Carneiro
Modified: 2007-12-17 09:56 UTC (History)
0 users

See Also:


Attachments
possible patch (10.99 KB, patch)
2007-12-17 08:30 UTC, Gustavo J. A. M. Carneiro
Details | Diff
another patch (simpler version) (2.13 KB, patch)
2007-12-17 09:01 UTC, Gustavo J. A. M. Carneiro
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.