summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmin Mesbah <mesbahamin@gmail.com>2017-11-11 17:01:03 -0800
committerAmin Mesbah <mesbahamin@gmail.com>2017-11-11 17:01:03 -0800
commit90d407e2bf9dbd0ab624e8d66b0f65b1faec2443 (patch)
tree9df5bf527b27792f29a1751f33d4a5be529c6b79
parentc3afec4d2182577d53dd9ca9ae95cdaa50951f05 (diff)
downloadohsp-90d407e2bf9dbd0ab624e8d66b0f65b1faec2443.zip
ohsp-90d407e2bf9dbd0ab624e8d66b0f65b1faec2443.tar.gz
Add warning flags to GCC
- `-Wfloat-equal`: warn about float equality comparisons - `-Wswitch-enum`: make sure switch statements on enums include a case for every enum code.
-rwxr-xr-xMakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 514f930..f223a53 100755
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
CC = gcc
-CFLAGS = -std=c99 -Wall -Wextra -Wpedantic -Wshadow -Wno-unused-parameter
+CFLAGS = -std=c99 -Wall -Wextra -Wfloat-equal -Wpedantic -Wshadow -Wswitch-enum -Wno-unused-parameter
LDFLAGS = $(SDL_LDFLAGS) -lm
SDL_CFLAGS := $(shell sdl2-config --cflags)