diff options
-rw-r--r-- | meta-oe/recipes-connectivity/modemmanager/modemmanager/0001-Do-not-set-Wno-unused-but-set-variable.patch | 30 | ||||
-rw-r--r-- | meta-oe/recipes-connectivity/modemmanager/modemmanager_1.10.0.bb | 3 |
2 files changed, 1 insertions, 32 deletions
diff --git a/meta-oe/recipes-connectivity/modemmanager/modemmanager/0001-Do-not-set-Wno-unused-but-set-variable.patch b/meta-oe/recipes-connectivity/modemmanager/modemmanager/0001-Do-not-set-Wno-unused-but-set-variable.patch deleted file mode 100644 index dcbe01d5ed..0000000000 --- a/meta-oe/recipes-connectivity/modemmanager/modemmanager/0001-Do-not-set-Wno-unused-but-set-variable.patch +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | From d4f73b037d11d20f080e74c05df28853fb833075 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 7 Dec 2018 22:59:47 -0800 | ||
4 | Subject: [PATCH] Do not set Wno-unused-but-set-variable | ||
5 | |||
6 | This is gcc specific warning, not implemented by pretending to be gcc | ||
7 | like compilers e.g. clang. | ||
8 | |||
9 | We will pass this option from recipe | ||
10 | |||
11 | Upstream-Status: Inappropriate [OE-Specific] | ||
12 | |||
13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
14 | --- | ||
15 | m4/compiler_warnings.m4 | 2 +- | ||
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
17 | |||
18 | diff --git a/m4/compiler_warnings.m4 b/m4/compiler_warnings.m4 | ||
19 | index f498a28..e65e97f 100644 | ||
20 | --- a/m4/compiler_warnings.m4 | ||
21 | +++ b/m4/compiler_warnings.m4 | ||
22 | @@ -11,7 +11,7 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then | ||
23 | -Wdeclaration-after-statement -Wstrict-prototypes \ | ||
24 | -Wno-unused-parameter -Wno-sign-compare \ | ||
25 | -Wno-deprecated-declarations \ | ||
26 | - -Wno-unused-but-set-variable -Wformat-security; do | ||
27 | + -Wno-unused -Wformat-security; do | ||
28 | SAVE_CFLAGS="$CFLAGS" | ||
29 | CFLAGS="$CFLAGS $option" | ||
30 | AC_MSG_CHECKING([whether gcc understands $option]) | ||
diff --git a/meta-oe/recipes-connectivity/modemmanager/modemmanager_1.10.0.bb b/meta-oe/recipes-connectivity/modemmanager/modemmanager_1.10.0.bb index 1ad19e8f7e..ef5af3a57d 100644 --- a/meta-oe/recipes-connectivity/modemmanager/modemmanager_1.10.0.bb +++ b/meta-oe/recipes-connectivity/modemmanager/modemmanager_1.10.0.bb | |||
@@ -12,7 +12,6 @@ inherit gnomebase gettext systemd vala gobject-introspection bash-completion | |||
12 | DEPENDS = "glib-2.0 libgudev intltool-native libxslt-native" | 12 | DEPENDS = "glib-2.0 libgudev intltool-native libxslt-native" |
13 | 13 | ||
14 | SRC_URI = "http://www.freedesktop.org/software/ModemManager/ModemManager-${PV}.tar.xz \ | 14 | SRC_URI = "http://www.freedesktop.org/software/ModemManager/ModemManager-${PV}.tar.xz \ |
15 | file://0001-Do-not-set-Wno-unused-but-set-variable.patch \ | ||
16 | " | 15 | " |
17 | SRC_URI[md5sum] = "92d25176d0cc9d588ca29700b33c7d98" | 16 | SRC_URI[md5sum] = "92d25176d0cc9d588ca29700b33c7d98" |
18 | SRC_URI[sha256sum] = "fd0f39996025dac96995daea8a58ec7dd571582f7563a8ae0d5f65b571b76ee2" | 17 | SRC_URI[sha256sum] = "fd0f39996025dac96995daea8a58ec7dd571582f7563a8ae0d5f65b571b76ee2" |
@@ -33,7 +32,7 @@ PACKAGECONFIG[qmi] = "--with-qmi,--without-qmi,libqmi" | |||
33 | EXTRA_OECONF = " \ | 32 | EXTRA_OECONF = " \ |
34 | --with-udev-base-dir=${nonarch_base_libdir}/udev \ | 33 | --with-udev-base-dir=${nonarch_base_libdir}/udev \ |
35 | " | 34 | " |
36 | CFLAGS_append_toolchain-gcc = " -Wno-unused-but-set-variable" | 35 | EXTRA_OECONF_append_toolchain-clang = " --enable-more-warnings=no" |
37 | 36 | ||
38 | FILES_${PN} += " \ | 37 | FILES_${PN} += " \ |
39 | ${datadir}/icons \ | 38 | ${datadir}/icons \ |