From 522db00cbf1fffed370db73281ea37e0e7cf4c57 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Wed, 5 Oct 2016 16:30:41 -0700 Subject: [PATCH] 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 7d011cc2a8a3..54b000ed6d0d 100644 --- a/Kbuild +++ b/Kbuild @@ -1750,6 +1750,7 @@ ifneq (y,$(CONFIG_ARCH_MSM)) EXTRA_CFLAGS += -Wframe-larger-than=4096 endif endif +EXTRA_CFLAGS += -Wmissing-prototypes ifeq ($(call cc-option-yn, -Wheader-guard),y) EXTRA_CFLAGS += -Wheader-guard