From: Dongkyun Son Date: Fri, 14 Jul 2023 01:26:54 +0000 (+0900) Subject: packaging: add "std=gnu++14" to extraflags X-Git-Tag: accepted/tizen/unified/dev/20230726.115949^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen_unified;p=platform%2Fadaptation%2Femulator%2Femulator-daemon.git packaging: add "std=gnu++14" to extraflags Fix error: ISO C++17 does not allow 'register' storage class specifier [-Werror=register] Change-Id: I910a262cc51a2d82f845040a86976855cabb4d5b Signed-off-by: Dongkyun Son --- diff --git a/packaging/emuld.spec b/packaging/emuld.spec index fa6f767..db2af7c 100644 --- a/packaging/emuld.spec +++ b/packaging/emuld.spec @@ -59,7 +59,7 @@ chmod 644 %{SOURCE0} %define gccversion %(gcc -dumpversion | cut -f1 -d.) %if %{gccversion} >= 9 - %define extraflags "-Wno-error=stringop-overflow -Wno-error=sizeof-pointer-memaccess -Wno-error=array-bounds -Wno-error=stringop-truncation" + %define extraflags "-Wno-error=stringop-overflow -Wno-error=sizeof-pointer-memaccess -Wno-error=array-bounds -Wno-error=stringop-truncation -std=gnu++14" %else %define extraflags "-Wno-error=sizeof-pointer-memaccess -Wno-error=array-bounds" %endif