diff --git a/NetworkManager.spec b/NetworkManager.spec index a49e5c0..71fe9b8 100644 --- a/NetworkManager.spec +++ b/NetworkManager.spec @@ -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 diff --git a/no-unused-but-set-warning.patch b/no-unused-but-set-warning.patch new file mode 100644 index 0000000..3709f0d --- /dev/null +++ b/no-unused-but-set-warning.patch @@ -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])