Suppress unused-but-set GCC warning
This commit is contained in:
parent
1c77896629
commit
a231c3eb8d
@ -32,6 +32,7 @@ Patch1: nm-applet-internal-buildfixes.patch
|
||||
Patch2: explain-dns1-dns2.patch
|
||||
Patch3: nm-applet-no-notifications.patch
|
||||
Patch4: modem-ip-interface-property-change.patch
|
||||
Patch5: no-unused-but-set-warning.patch
|
||||
Patch10: Port-to-libnotify-070.patch
|
||||
Patch11: gtk3-1.patch
|
||||
Patch12: gtk3-2.patch
|
||||
@ -170,6 +171,7 @@ tar -xjf %{SOURCE1}
|
||||
%patch2 -p1 -b .explain-dns1-dns2
|
||||
%patch3 -p1 -b .no-notifications
|
||||
%patch4 -p1 -b .modem-ip-iface
|
||||
%patch5 -p1 -b .no-unused-but-set
|
||||
pushd network-manager-applet-%{realversion}
|
||||
%patch10 -p1 -b .libnotify-070
|
||||
%patch11 -p1 -b .gtk3-1
|
||||
|
12
no-unused-but-set-warning.patch
Normal file
12
no-unused-but-set-warning.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -up NetworkManager-0.8.2/m4/compiler_warnings.m4.blah NetworkManager-0.8.2/m4/compiler_warnings.m4
|
||||
--- NetworkManager-0.8.2/m4/compiler_warnings.m4.blah 2011-02-01 21:43:21.931142148 -0600
|
||||
+++ NetworkManager-0.8.2/m4/compiler_warnings.m4 2011-02-01 21:43:39.053928083 -0600
|
||||
@@ -10,7 +10,7 @@ if test "$GCC" = "yes" -a "$set_more_war
|
||||
for option in -Wshadow -Wmissing-declarations -Wmissing-prototypes \
|
||||
-Wdeclaration-after-statement -Wstrict-prototypes \
|
||||
-Wfloat-equal -Wno-unused-parameter -Wno-sign-compare \
|
||||
- -fno-strict-aliasing; do
|
||||
+ -fno-strict-aliasing -Wno-unused-but-set-variable; do
|
||||
SAVE_CFLAGS="$CFLAGS"
|
||||
CFLAGS="$CFLAGS $option"
|
||||
AC_MSG_CHECKING([whether gcc understands $option])
|
Loading…
Reference in New Issue
Block a user