From ac0dac3bbb882fa02403986bb0e042a5a0bdd5b3 Mon Sep 17 00:00:00 2001 From: Dongkyun Son Date: Fri, 14 Jul 2023 10:26:54 +0900 Subject: [PATCH] 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 --- packaging/emuld.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.34.1