From 620baf13cd783ce894c05c0cde920b0f3ea1660e Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Wed, 4 Jan 2012 13:52:34 -0500 Subject: [PATCH] - modify the deltat grammar to also tell gcc (4.7) to suppress "maybe-uninitialized" warnings in addition to the "uninitialized" warnings it's already being told to suppress --- krb5-1.10-gcc47.patch | 12 ++++++++++++ krb5.spec | 10 +++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 krb5-1.10-gcc47.patch diff --git a/krb5-1.10-gcc47.patch b/krb5-1.10-gcc47.patch new file mode 100644 index 0000000..f1fb67e --- /dev/null +++ b/krb5-1.10-gcc47.patch @@ -0,0 +1,12 @@ +This file also triggers the maybe-uninitialized warning/error. + +--- src/lib/krb5/krb/x-deltat.y ++++ src/lib/krb5/krb/x-deltat.y +@@ -44,6 +44,7 @@ + #ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wuninitialized" ++#pragma GCC diagnostic ignored "-Wmaybe-uninitialized" + #endif + + #include diff --git a/krb5.spec b/krb5.spec index e764a81..ea6df3e 100644 --- a/krb5.spec +++ b/krb5.spec @@ -15,7 +15,7 @@ Summary: The Kerberos network authentication system Name: krb5 Version: 1.10 -Release: 0%{?dist}.alpha2.1 +Release: 0%{?dist}.alpha2.2 # Maybe we should explode from the now-available-to-everybody tarball instead? # http://web.mit.edu/kerberos/dist/krb5/1.10/krb5-1.10-alpha2-signed.tar Source0: krb5-%{version}-alpha2.tar.gz @@ -60,6 +60,7 @@ Patch86: krb5-1.9-debuginfo.patch Patch100: krb5-trunk-7046.patch Patch101: krb5-trunk-7047.patch Patch102: krb5-trunk-7048.patch +Patch103: krb5-1.10-gcc47.patch License: MIT URL: http://web.mit.edu/kerberos/www/ @@ -228,6 +229,8 @@ ln -s NOTICE LICENSE %patch100 -p1 -b .7046 %patch101 -p1 -b .7047 %patch102 -p1 -b .7048 +%patch103 -p0 -b .gcc47 +rm src/lib/krb5/krb/deltat.c gzip doc/*.ps @@ -738,6 +741,11 @@ exit 0 %{_sbindir}/uuserver %changelog +* Wed Jan 4 2012 Nalin Dahyabhai 1.10-0.alpha2.2 +- modify the deltat grammar to also tell gcc (4.7) to suppress + "maybe-uninitialized" warnings in addition to the "uninitialized" warnings + it's already being told to suppress + * Tue Dec 20 2011 Nalin Dahyabhai 1.10-0.alpha2.1 - update to alpha 2 - drop a couple of patches which were integrated for alpha 2