Skip to contentSkip to conversation

libyui-ncurses: Disable Werror

PATCH New Khem Raj 1 participant 1 message Mar 3, 2021

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 libyui-ncurses: Disable Werror

There are new warnings seen with new clang 12 and gcc11 lets disable the warnings-as-errors for now

src/NCPopupTextEntry.cc:76:74: error: 'void operator delete(void*, std::size_t)' called on pointer returned from a mismatched allocation function [-Werror=mismatched-new-delete]

|    76 |                                                       NCInputField::PLAIN);
|       |                                                                          ^
---
 meta-oe/recipes-graphics/libyui/libyui-ncurses_4.0.0.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
meta-oe/recipes-graphics/libyui/libyui-ncurses_4.0.0.bb +1 -2
index 5efbb44901..bcc8b64328 100644
@@ -19,8 +19,7 @@ DEPENDS += "boost libyui ncurses"
 
 BBCLASSEXTEND = "nativesdk"
 
-EXTRA_OECMAKE += "-DCMAKE_BUILD_TYPE=RELWITHDEBINFO"
-EXTRA_OECMAKE_append_toolchain-clang = " -DENABLE_WERROR=OFF"
+EXTRA_OECMAKE += "-DCMAKE_BUILD_TYPE=RELWITHDEBINFO -DENABLE_WERROR=OFF"
 
 do_configure_prepend () {
     cd ${S}
Signature · 1 line
2.30.1