[Common] Build as C++14, and with -Werror 24/164024/2
authorJakub Skowron <j.skowron@samsung.com>
Thu, 14 Dec 2017 16:57:31 +0000 (17:57 +0100)
committerPiotr Kosko <p.kosko@samsung.com>
Mon, 18 Dec 2017 08:53:08 +0000 (08:53 +0000)
Tool chain has already been changed to GCC 6.2.1, which fully
supports -std=c++14

Change-Id: I5a2c82fabcbb599f02fcbac9ff27cd2ce4cb3b65
Signed-off-by: Jakub Skowron <j.skowron@samsung.com>
src/common/common.gypi

index 0e15003a3431c16e8014fe6041ff6ff292082bfb..cf4fed834800b69ac6123f12190b54f45f0741be 100644 (file)
       'XW_Extension.cc',
     ],
     'cflags': [
-      '-std=c++0x',
       '-fPIC',
       '-fvisibility=hidden',
       '-Wall',
+      '-Werror',
+    ],
+    'cflags_c': [
+      '-std=c11',
+    ],
+    'cflags_cc': [
+      '-std=c++14',
     ],
     'libraries' : [
       '-L .',