diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2015-05-06 17:12:06 -0700 |
---|---|---|
committer | Joshua Haberman <jhaberman@gmail.com> | 2015-05-06 17:12:06 -0700 |
commit | bd7ea8c6f1854aa37b7792c6f23334ffc0fd94ff (patch) | |
tree | da5a49a715a9af60fd6630e3462ad0b1bf8781c0 /Makefile | |
parent | 535bc2fe2f2b467f59347ffc9449e11e47791257 (diff) | |
parent | 508c39ee133d6725a4440ba98a1555e2026975c2 (diff) |
Merge pull request #16 from martinmaly/warnings
Resolve compilation errors if compiled with strict warnings.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -38,6 +38,10 @@ USER_CPPFLAGS= # Build with "make WITH_JIT=yes" (or anything besides "no") to enable the JIT. WITH_JIT=no +# Build with "make WITH_MAX_WARNINGS=yes" (or anything besides "no") to enable +# with strict warnings and treat warnings as errors. +WITH_MAX_WARNINGS=no + # Basic compiler/flag setup. CC=cc CXX=c++ @@ -53,6 +57,10 @@ ifneq ($(WITH_JIT), no) CPPFLAGS += -DUPB_USE_JIT_X64 endif +ifneq ($(WITH_MAX_WARNINGS), no) + WARNFLAGS=-Wall -Wextra -Wpointer-arith -Werror +endif + # Build with "make Q=" to see all commands that are being executed. Q=@ |