[Git][NTPsec/ntpsec][master] "-Wsuggest-attribute" is not valid with clang

Matt Selsky gitlab at mg.gitlab.com
Tue Apr 11 03:00:26 UTC 2017


Matt Selsky pushed to branch master at NTPsec / ntpsec


Commits:
1eb9d97e by Matt Selsky at 2017-04-10T22:58:54-04:00
"-Wsuggest-attribute" is not valid with clang

- - - - -


1 changed file:

- wafhelpers/configure.py


Changes:

=====================================
wafhelpers/configure.py
=====================================
--- a/wafhelpers/configure.py
+++ b/wafhelpers/configure.py
@@ -305,14 +305,14 @@ def cmd_configure(ctx, config):
             "-Wpointer-arith",
             # "-Wredundant-decls",    # incompatible w/ Unity
             "-Wshadow",
-            "-Wsuggest-attribute=noreturn",
-            "-Wsuggest-attribute=pure",
             "-Wswitch-default",
             "-Wwrite-strings",
         ]
         cc_test_flags += [
             ('w_format_signedness', '-Wformat-signedness'), # fails on OpenBSD 6
             ('w_sign_conversion', "-Wsign-conversion"), # fails on Solaris and OpenBSD 6
+            ('w_suggest_attribute_noreturn', "-Wsuggest-attribute=noreturn"), # fails on clang
+            ('w_suggest_attribute_pure', "-Wsuggest-attribute=pure"), # fails on clang
             ]
 
     ctx.env.CFLAGS += [



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/1eb9d97ecbce78205b8461ecf9f422baa1e29909
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170411/638ed8e6/attachment.html>


More information about the vc mailing list