Fixing -Wstrict-prototypes warnings.

Bug: webrtc:8984
Change-Id: I9a7ffb0038f341bfec055f021fc203c7d45d72fa
Reviewed-on: https://webrtc-review.googlesource.com/60903
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Niels Moller <nisse@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#22501}
diff --git a/BUILD.gn b/BUILD.gn
index 805de13..e24c741 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -171,7 +171,9 @@
 
 config("common_config") {
   cflags = []
+  cflags_c = []
   cflags_cc = []
+  cflags_objc = []
   defines = []
 
   if (rtc_enable_protobuf) {
@@ -221,6 +223,20 @@
         "-Wno-missing-field-initializers",
         "-Wno-strict-overflow",
       ]
+      cflags_c += [
+        # TODO(bugs.webrtc.org/9029): enable commented compiler flags.
+        # Some of these flags should also be added to cflags_objc.
+
+        # "-Wextra",  (used when building C++ but not when building C)
+        # "-Wmissing-prototypes",  (C/Obj-C only)
+        # "-Wmissing-declarations",  (ensure this is always used C/C++, etc..)
+        "-Wstrict-prototypes",
+
+        # "-Wpointer-arith",  (ensure this is always used C/C++, etc..)
+        # "-Wbad-function-cast",  (C/Obj-C only)
+        # "-Wnested-externs",  (C/Obj-C only)
+      ]
+      cflags_objc += [ "-Wstrict-prototypes" ]
       cflags_cc = [
         "-Wnon-virtual-dtor",