Skip to content
Snippets Groups Projects
Commit c9882a26 authored by Gary E. Miller's avatar Gary E. Miller :speech_balloon:
Browse files

waf: -Wfloat-equal warning always on, no warnings now.

parent b469cd8c
No related branches found
No related tags found
No related merge requests found
......@@ -264,6 +264,7 @@ def cmd_configure(ctx, config):
('w_cast_align', "-Wcast-align"),
('w_cast_qual', "-Wcast-qual"),
('w_disabled_optimization', "-Wdisabled-optimization"),
('w_float_equal', "-Wfloat-equal"),
('w_format', '-Wformat'),
('w_format_security', '-Wformat-security'),
# fails on OpenBSD 6
......@@ -310,7 +311,6 @@ def cmd_configure(ctx, config):
# "-Wall", # for masochists
# "-Waggregate-return", # breaks ldiv(), ntpcal_daysplit(), etc.
"-Wbad-function-cast",
"-Wfloat-equal", # Not Ready For Prime Time
# "-Wformat-nonliteral", # complains about a used feature
"-Wmissing-format-attribute",
# "-Wnested-externs", # incompatible w/ Unity...
......@@ -403,6 +403,8 @@ int main(int argc, char **argv) {
# should be before other -Wformat-* in CFLAGS
if ctx.env.HAS_w_format:
ctx.env.CFLAGS = ['-Wformat'] + ctx.env.CFLAGS
if ctx.env.HAS_w_float_equal:
ctx.env.CFLAGS = ['-Wfloat-equal'] + ctx.env.CFLAGS
if ctx.env.HAS_w_init_self:
ctx.env.CFLAGS = ['-Winit-self'] + ctx.env.CFLAGS
if ctx.env.HAS_w_inline:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment