[tcpreplay] Add -Wno-format-contains-nul to CFLAGS.

bojan bojan at fedoraproject.org
Fri Dec 19 01:01:51 UTC 2014


commit 3db8f431aa3682e2f84129192055078ec48e5219
Author: Bojan Smojver <bojan at rexursive.com>
Date:   Fri Dec 19 12:01:02 2014 +1100

    Add  -Wno-format-contains-nul to CFLAGS.

 tcpreplay.spec |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tcpreplay.spec b/tcpreplay.spec
index ec5841d..11411e0 100644
--- a/tcpreplay.spec
+++ b/tcpreplay.spec
@@ -40,7 +40,7 @@ capture files.
 
 # make sure we use proper CFLAGS
 %{__sed} -i \
-         -e 's/^CFLAGS.*/CFLAGS=${RPM_OPT_FLAGS} -std=gnu99 -D_U_="__attribute__((unused))"/' \
+         -e 's/^CFLAGS.*/CFLAGS=${RPM_OPT_FLAGS} -std=gnu99 -D_U_="__attribute__((unused))" -Wno-format-contains-nul/' \
          $(find . -name Makefile)
 
 # remove unneeded docs


More information about the scm-commits mailing list