Portability: gcc structured binding declaration error
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 16 Mar 2022 07:38:00 +0000 (16:38 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Sun, 20 Mar 2022 03:32:51 +0000 (12:32 +0900)
gcc-7 does not comply with c++-17 fully with structured binding declaration.
This allows maybe-unused globally as a workaround.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
meson.build

index c2e8fe2..a99640a 100644 (file)
@@ -39,7 +39,8 @@ warning_flags = [
   '-Wpointer-arith',
   '-Wno-error=varargs',
   '-Wdefaulted-function-deleted',
-  '-ftree-vectorize'
+  '-ftree-vectorize',
+  '-Wno-unused-variable'
 ]
 
 warning_c_flags = [