From c989f3159302e966324f634c85ec54fd7ae4c599 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Thu, 9 Aug 2018 14:23:58 -0700 Subject: gpu: nvgpu: Make userspace build stricter Add a bunch of build warning flags to make userspace builds mimic the strictness of standard tmake builds. Change-Id: If6f1f716f2bb2d64d240a66be2cb3aae814f24d0 Signed-off-by: Terje Bergstrom Reviewed-on: https://git-master.nvidia.com/r/1796239 Reviewed-by: Alex Waterman Reviewed-by: svc-misra-checker GVS: Gerrit_Virtual_Submit Reviewed-by: Scott Long Reviewed-by: mobile promotions Tested-by: mobile promotions --- userspace/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'userspace') diff --git a/userspace/Makefile b/userspace/Makefile index 56709ec4..1483aa24 100644 --- a/userspace/Makefile +++ b/userspace/Makefile @@ -58,6 +58,13 @@ CONFIGS=-D__NVGPU_POSIX__ # CC = clang CC = gcc CFLAGS = -Wall -ggdb -Werror -fPIC $(INCLUDES) $(CONFIGS) +CFLAGS = -Wall -Wextra -ggdb -Werror -Wno-unused-parameter \ + -Wno-missing-field-initializers -Wformat -Wchar-subscripts \ + -Wparentheses -Wtrigraphs -Wpointer-arith -Wmissing-declarations \ + -Wmissing-prototypes -Wredundant-decls -Wmain -Wreturn-type \ + -Wmultichar -Wunused -Wmissing-braces -Wstrict-aliasing \ + -Wsign-compare -Waddress -Wno-unused-local-typedefs -fPIC \ + $(INCLUDES) $(CONFIGS) LIB_PATHS = -L$(OUT) LIBS = -lpthread -pthread -lgcov -ldl -- cgit v1.2.2