[GRASS-dev] [GRASS-SVN] r52607 - grass/trunk/raster/r.lake
maris.gis at gmail.com
Thu Aug 9 22:45:07 PDT 2012
just to clarify.
It's not a GCC bug but a valid warning of an exploitable issue:
Still for most of GRASS codebase it's harmless as strings are fixed
and not user provided.
Those, who don't see any warnings, should try CFLAGS="-Wall -Wformat
-Wno-format-extra-args -Wformat-security -Wformat-nonliteral
The question now is - why we shouldn't change code to get rid of most
of compiler warnings? Gazzillion of irrelevant warnings might just
hide some more important ones thus I personally would be +1 for
working around most common warnings to make compilation more silent
and thus more easy to spot any new issues.
PS. Markus M - please provide Your CFLAGS as I don't see any warnings
when compiling r.lake with gcc version 4.6.3 (Gentoo 4.6.3 p1.3,
2012/8/10 Markus Neteler <neteler at osgeo.org>:
> On Fri, Aug 10, 2012 at 12:39 AM, Markus Metz
> <markus.metz.giswork at gmail.com> wrote:
>> If this is a real problem, why fix the symptoms and not the cause?
>> That would probably be the macro defining _().
> It worked for the past 10-xx years, so I don't see a reason why
> messing up the code when one specific gcc version complains.
> grass-dev mailing list
> grass-dev at lists.osgeo.org
More information about the grass-dev