diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2018-08-09 17:23:58 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-08-11 00:33:30 -0400 |
commit | c989f3159302e966324f634c85ec54fd7ae4c599 (patch) | |
tree | 7f87295fbe4a722d95d9ca66c2fd114c0dffb78a | |
parent | 6af7b2288ff003550f40716a5c3ec24d1637f8be (diff) |
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 <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1796239
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Long <scottl@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
-rw-r--r-- | userspace/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
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__ | |||
58 | # CC = clang | 58 | # CC = clang |
59 | CC = gcc | 59 | CC = gcc |
60 | CFLAGS = -Wall -ggdb -Werror -fPIC $(INCLUDES) $(CONFIGS) | 60 | CFLAGS = -Wall -ggdb -Werror -fPIC $(INCLUDES) $(CONFIGS) |
61 | CFLAGS = -Wall -Wextra -ggdb -Werror -Wno-unused-parameter \ | ||
62 | -Wno-missing-field-initializers -Wformat -Wchar-subscripts \ | ||
63 | -Wparentheses -Wtrigraphs -Wpointer-arith -Wmissing-declarations \ | ||
64 | -Wmissing-prototypes -Wredundant-decls -Wmain -Wreturn-type \ | ||
65 | -Wmultichar -Wunused -Wmissing-braces -Wstrict-aliasing \ | ||
66 | -Wsign-compare -Waddress -Wno-unused-local-typedefs -fPIC \ | ||
67 | $(INCLUDES) $(CONFIGS) | ||
61 | LIB_PATHS = -L$(OUT) | 68 | LIB_PATHS = -L$(OUT) |
62 | LIBS = -lpthread -pthread -lgcov -ldl | 69 | LIBS = -lpthread -pthread -lgcov -ldl |
63 | 70 | ||