summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnson <jjohnson@codeaurora.org>2016-10-05 16:30:41 -0700
committerJeff Johnson <jjohnson@codeaurora.org>2016-11-30 17:48:31 -0800
commit16fc8903943e5ec3936366adabbd860121229d07 (patch)
treeeb7796aef09c7c19c34955d85580b05485adad46
parentbb248665080e3be786d623f6b69a5dd8592e974f (diff)
qcacld-3.0: Enable -Wmissing-prototypes
Enable the compiler's -Wmissing-prototypes switch. This will help catch two types of issues: 1) Implementations which do not include their header file which prevents the compiler from verifying that the signature of the implementation matches the signature of the prototype. 2) Functions which should be static but which are missing the 'static' keyword. Change-Id: I4f8e45b40e57bdf7bec40e3d72cc48e7bfe15b7b CRs-Fixed: 1074336
-rw-r--r--Kbuild1
1 files changed, 1 insertions, 0 deletions
diff --git a/Kbuild b/Kbuild
index edbc9d8fe44e..f4712a918d2e 100644
--- a/Kbuild
+++ b/Kbuild
@@ -1585,6 +1585,7 @@ KBUILD_CPPFLAGS += $(CDEFINES)
ifeq ($(call cc-option-yn, -Wmaybe-uninitialized),y)
EXTRA_CFLAGS += -Wmaybe-uninitialized
endif
+EXTRA_CFLAGS += -Wmissing-prototypes
# If the module name is not "wlan", then the define MULTI_IF_NAME to be the
# same a the module name. The host driver will then append MULTI_IF_NAME to