[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gpsd-dev] [PATCH 5/5] Removes two redundant or troublesome compile flag
[gpsd-dev] [PATCH 5/5] Removes two redundant or troublesome compile flags.
Sun, 23 Oct 2016 14:16:58 -0700
The two flags -Wmissing-prototypes and -Wmissing-declarations were
being both conditionally included after a validity test, and then
unconditionally included later. In cases where they were acceptable,
that resulted in doubly including them, and in cases where they
were unacceptable, that meant breaking the build.
The fix is simply to remove the unconditional adds. This is a
necessary but not sufficient condition for building with CC=c99
Ran "scons build-all check" on OSX, and verified that the two
flags were still present in the appropriate commands, but now
only once. Also verified that building with CC=c99 no longer
fails in a manner related to those flags.
SConstruct | 6 ------
1 file changed, 6 deletions(-)
diff --git a/SConstruct b/SConstruct
index 65004d0..eb8c362 100644
@@ -353,14 +353,8 @@ if env["sysroot"]:
if 'MORECFLAGS' in os.environ:
-# Don't change CFLAGS if already set by environment.
-if 'CFLAGS' not in os.environ:
- if '-Wmissing-prototypes' not in env['CFLAGS']:
# Don't change CCFLAGS if already set by environment.
if 'CCFLAGS' not in os.environ:
# Should we build with profiling?