[chicken] Add -Wformat for bz 1037013

Ricky Elrod codeblock at fedoraproject.org
Sun Dec 8 19:50:58 UTC 2013


commit cae8317872722edd62d46677368525bd05f1b0f9
Author: Ricky Elrod <ricky at elrod.me>
Date:   Sun Dec 8 14:50:55 2013 -0500

    Add -Wformat for bz 1037013

 chicken.spec |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/chicken.spec b/chicken.spec
index 924dc4a..4608a84 100644
--- a/chicken.spec
+++ b/chicken.spec
@@ -2,7 +2,7 @@
 
 Name:           chicken
 Version:        4.8.0.5
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        A practical and portable Scheme system
 
 Group:          Development/Languages
@@ -56,7 +56,7 @@ echo "#define C_BUILD_TAG \"compiled $(date '+%Y-%m-%d') on $(hostname)\"" > bui
 # flags that it was compiled with when it compiles code for the end-user.
 # So if we pass -Wall here, it'll give the user a bunch of warnings when they
 # compile anything at all with `csc`. So that's lovely. -codeblock
-make CFLAGS="$(echo "%{optflags}" | sed 's/-Wall//')" \
+make CFLAGS="$(echo "%{optflags}" | sed 's/-Wall//') -Wformat" \
      PREFIX=%{_prefix} \
      BINDIR=%{_bindir} \
      LIBDIR=%{_libdir} \
@@ -68,7 +68,7 @@ make CFLAGS="$(echo "%{optflags}" | sed 's/-Wall//')" \
      PLATFORM=linux
 
 %install
-make CFLAGS="$(echo "%{optflags}" | sed 's/-Wall//')" \
+make CFLAGS="$(echo "%{optflags}" | sed 's/-Wall//') -Wformat" \
      PREFIX=%{_prefix} \
      BINDIR=%{_bindir} \
      LIBDIR=%{_libdir} \
@@ -111,6 +111,9 @@ chrpath --delete %{buildroot}/%{_bindir}/*
 %{_docdir}/chicken/manual
 
 %changelog
+* Sun Dec 8 2013 Ricky Elrod <codeblock at fedoraproject.org> - 4.8.0.5-2
+- Add -Wformat for BZ #1037013.
+
 * Sun Nov 24 2013 Ricky Elrod <codeblock at fedoraproject.org> - 4.8.0.5-1
 - Upstream 4.8.0.5.
 


More information about the scm-commits mailing list