about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-03-15 00:38:34 -0400
committerJune McEnroe <june@causal.agency>2019-03-15 00:38:34 -0400
commit9aa106d575444d50ed8838205657145efc751034 (patch)
tree8cfcdfa5a6db59a4d80b9e608d988a38f4904e01
parentAdd Cards_{Width,Height} constants (diff)
downloadcards-9aa106d575444d50ed8838205657145efc751034.tar.gz
cards-9aa106d575444d50ed8838205657145efc751034.zip
Turn on -Wpedantic
-rw-r--r--Makefile2
-rw-r--r--cards.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 2ba46a6..68e6a17 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-CFLAGS += -std=c99 -Wall -Wextra
+CFLAGS += -std=c99 -Wall -Wextra -Wpedantic
 
 SDL_PREFIX = /usr/local
 CFLAGS += -I$(SDL_PREFIX)/include/SDL2
diff --git a/cards.c b/cards.c
index 6369d40..2e8ab20 100644
--- a/cards.c
+++ b/cards.c
@@ -24,7 +24,7 @@ static struct SDL_Surface *
 dibSurface(struct SDL_RWops *rw, Uint32 offset, Uint32 length) {
 	Uint32 bitmapLength = 0x0E + length;
 
-	void *buffer = malloc(bitmapLength);
+	Uint8 *buffer = malloc(bitmapLength);
 	if (!buffer) {
 		SDL_SetError("malloc error: %s", strerror(errno));
 		return NULL;