Skip to contentSkip to conversation

cpprest: Fix build failure with gcc 8

PATCH New Adrian Bunk 1 participant 1 message Jul 2, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cpprest: Fix build failure with gcc 8

The workaround for gcc 9 broke building with gcc 8:
cc1plus: error: -Werror=deprecated-copy: no option -Wdeprecated-copy
cc1plus: error: -Werror=redundant-move: no option -Wredundant-move
ninja: build stopped: subcommand failed.

-Werror is often problematic in distribution builds, disable it globally and permanently.

---
 meta-oe/recipes-support/cpprest/cpprest_2.10.13.bb | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
meta-oe/recipes-support/cpprest/cpprest_2.10.13.bb +1 -3
index 070451211..3e42a002e 100644
@@ -18,6 +18,4 @@ S = "${WORKDIR}/git"
 
 inherit cmake pkgconfig
 
-# Temporary until https://github.com/Microsoft/cpprestsdk/issues/1099
-# is fixed properly
-CXXFLAGS += "-Wno-error=deprecated-copy -Wno-error=redundant-move"
+CXXFLAGS += "-Wno-error"
Signature · 1 line
2.17.1