[oe,meta-networking,1/7] yp-tools: Ignore cpp warnings as errors

Message ID 20170922032316.18616-1-raj.khem@gmail.com
State Accepted
Commit ec22dc2bc40991c18862b8623fc4d7d1d3aa594e
Headers show
Series
  • [oe,meta-networking,1/7] yp-tools: Ignore cpp warnings as errors
Related show

Commit Message

Khem Raj Sept. 22, 2017, 3:23 a.m.
-Wno-error=\#Warnings is too clang'ish, gcc doesnt like it
use an option that common for both compilers

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 meta-networking/recipes-support/nis/yp-tools_4.2.2.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.14.1

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Patch

diff --git a/meta-networking/recipes-support/nis/yp-tools_4.2.2.bb b/meta-networking/recipes-support/nis/yp-tools_4.2.2.bb
index a3f0a7698..9ac973812 100644
--- a/meta-networking/recipes-support/nis/yp-tools_4.2.2.bb
+++ b/meta-networking/recipes-support/nis/yp-tools_4.2.2.bb
@@ -33,7 +33,7 @@  CACHED_CONFIGUREVARS += "ac_cv_prog_STRIP=/bin/true"
 EXTRA_OECONF = " \
                 --disable-rpath --disable-domainname \
                "
-CFLAGS_append_libc-musl = " -Wno-error=\#warnings"
+CFLAGS_append_libc-musl = " -Wno-error=cpp"
 
 FILES_${PN} += " ${libdir}/yp-nis/*.so.*.* ${libdir}/yp-nis/pkgconfig/"
 FILES_${PN}-dbg += " ${libdir}/yp-nis/.debug"