Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(419)

Unified Diff: build/build_nexe.py

Issue 11415157: Enable the -Wstrict-prototypes warning for untrusted code in the Gyp build (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Avoid warning about C++ Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/build_nexe.py
diff --git a/build/build_nexe.py b/build/build_nexe.py
index 60b7409f3f8dde3b648341d5f2f0cd9a96955ddd..742fb6a2feedd681657d8095fb29446d406dadff 100644
--- a/build/build_nexe.py
+++ b/build/build_nexe.py
@@ -584,7 +584,7 @@ class Builder(object):
_, ext = os.path.splitext(src)
if ext in ['.c', '.S']:
bin_name = self.GetCCompiler()
- extra = ['-std=gnu99']
+ extra = ['-std=gnu99', '-Wstrict-prototypes']
if self.is_pnacl_toolchain and ext == '.S':
extra.append('-arch')
extra.append(self.arch)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698