From c4457a8f623bb4f09542d98bdde9c33ca932c4a3 Mon Sep 17 00:00:00 2001 From: Bruce Dawson Date: Fri, 9 Jan 2015 11:51:09 -0800 Subject: Only request C++11 when compiling C++ code. Linux pdfium builds have 215 warnings of this form: command line option -std=gnu++11 is valid for C++/ObjC++ but not for C The obvious fix is to not request C++11 for C compilations. The only complication was the the switch we are using is actually gnu++0x, not gnu++11. BUG=https://code.google.com/p/pdfium/issues/detail?id=102 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/839163002 --- build/standalone.gypi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/standalone.gypi b/build/standalone.gypi index 0d650a3bdc..645b9f2b7b 100644 --- a/build/standalone.gypi +++ b/build/standalone.gypi @@ -150,9 +150,9 @@ '-pthread', '-fno-exceptions', '-fvisibility=hidden', - '-std=gnu++0x', ], 'cflags_cc': [ + '-std=gnu++0x', '-Wnon-virtual-dtor', '-fno-rtti', ], -- cgit v1.2.3