ohsp

Prototype for a game with dual thruster controls.
git clone git://git.amin.space/ohsp.git
Log | Files | Refs | LICENSE

commit 82cc4f97ca6dfd33b6dc5d787ae2d069c8f321a9
parent 4cedde2e66c63d75e367806d2ed8f5dae336e8b1
Author: amin <dev@aminmesbah.com>
Date:   Sun, 12 Nov 2017 01:01:03 +0000

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.

FossilOrigin-Name: 6cbc932ea51592282c8d2e7ac3265e3a7202896e173fcf32097c7e36ad69d740
Diffstat:
MMakefile | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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)