[Git][NTPsec/ntpsec][master] waf: add --enable-warnings option

Gary E. Miller gitlab at mg.gitlab.com
Thu Apr 20 00:16:23 UTC 2017


Gary E. Miller pushed to branch master at NTPsec / ntpsec


Commits:
5704c031 by Gary E. Miller at 2017-04-19T17:13:28-07:00
waf: add --enable-warnings option

Some CC warnings are too usefull to lose, but too annoying for
general usage.  --enable-warnings turns them on for developera
that want to see them.

Warnings should generate no ouput are still on by default.

- - - - -


2 changed files:

- wafhelpers/configure.py
- wafhelpers/options.py


Changes:

=====================================
wafhelpers/configure.py
=====================================
--- a/wafhelpers/configure.py
+++ b/wafhelpers/configure.py
@@ -301,6 +301,8 @@ def cmd_configure(ctx, config):
     if ctx.options.enable_debug:
         ctx.define("DEBUG", 1, comment="Enable debug mode")
         ctx.env.BISONFLAGS += ["--debug"]
+
+    if ctx.options.enable_warnings:
         # turn on some annoying warnings
         ctx.env.CFLAGS = [
             # "-Wall",                # for masochists


=====================================
wafhelpers/options.py
=====================================
--- a/wafhelpers/options.py
+++ b/wafhelpers/options.py
@@ -76,6 +76,8 @@ def options_cmd(ctx, config):
                    help="Run tests")
     grp.add_option('--enable-rtems-trace', action='store_true',
                    default=False, help="Enable RTEMS Trace.")
+    grp.add_option('--enable-warnings', action='store_true',
+                   default=False, help="Enable annoying CC warnings")
     grp.add_option('--rtems-trace-path', type='string', default="",
                    help="Path to rtems-tld.")
     grp.add_option(



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/5704c031dd6c3516069ef1f554158c3928d03b42

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/5704c031dd6c3516069ef1f554158c3928d03b42
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170420/6524dc92/attachment.html>


More information about the vc mailing list