<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/bd5b6899accd125ceaaefe7a9b9c0ece7fa45286">https://github.com/macports/macports-ports/commit/bd5b6899accd125ceaaefe7a9b9c0ece7fa45286</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new bd5b689 autogen: Don't use -Wno-format-contains-nul
</span>bd5b689 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit bd5b6899accd125ceaaefe7a9b9c0ece7fa45286
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Tue Jul 24 16:15:29 2018 -0500
<span style='display:block; white-space:pre;color:#404040;'> autogen: Don't use -Wno-format-contains-nul
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> clang doesn't understand it and ignores it, and gcc-4.2 prints an error.
</span>---
devel/autogen/Portfile | 1 +
devel/autogen/files/Wno-format-contains-nul.patch | 13 +++++++++++++
2 files changed, 14 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/autogen/Portfile b/devel/autogen/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 0f7be658..7df338e 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/autogen/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/autogen/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -32,6 +32,7 @@ universal_variant no
</span>
patchfiles-append patch-autogen-guile-2.2.diff
patchfiles-append Werror.patch
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append Wno-format-contains-nul.patch
</span>
test.run yes
test.target check
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/autogen/files/Wno-format-contains-nul.patch b/devel/autogen/files/Wno-format-contains-nul.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..b615f7f
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/autogen/files/Wno-format-contains-nul.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Do not use -Wno-format-contains-nul. clang doesn't understand it and prints
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+a warning:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+warning: unknown warning option '-Wno-format-contains-nul' [-Wunknown-warning-option]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+while gcc 4.2 prints an error:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+cc1: error: unrecognized command line option "-Wno-format-contains-nul"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- configure.orig 2018-07-16 17:29:47.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ configure 2018-07-24 16:04:50.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -18368,1 +18368,1 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- CFLAGS="$CFLAGS -Wno-format-contains-nul -fno-strict-aliasing"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ CFLAGS="$CFLAGS -fno-strict-aliasing"
</span></pre><pre style='margin:0'>
</pre>