From 16fc8903943e5ec3936366adabbd860121229d07 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Wed, 5 Oct 2016 16:30:41 -0700 Subject: 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 --- Kbuild | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3