From d01bb4a193338e851e76bd9b80f79bb9bdbc7b31 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Tue, 4 Nov 2014 10:32:50 +0100 Subject: Makefile : added -Wcast-align compilation warning --- Makefile | 2 +- programs/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 225b21c..8cf6f8a 100644 --- a/Makefile +++ b/Makefile @@ -42,7 +42,7 @@ DESTDIR?= PREFIX ?= /usr CC := $(CC) CFLAGS ?= -O3 -CFLAGS += -I. -std=c99 -Wall -Wextra -Wundef -Wshadow -Wstrict-prototypes -DLZ4_VERSION=\"$(RELEASE)\" +CFLAGS += -I. -std=c99 -Wall -Wextra -Wundef -Wshadow -Wcast-align -Wstrict-prototypes -DLZ4_VERSION=\"$(RELEASE)\" LIBDIR?= $(PREFIX)/lib INCLUDEDIR=$(PREFIX)/include diff --git a/programs/Makefile b/programs/Makefile index ad64340..1a81d73 100644 --- a/programs/Makefile +++ b/programs/Makefile @@ -36,7 +36,7 @@ DESTDIR?= PREFIX ?= /usr CC := $(CC) CFLAGS ?= -O3 -CFLAGS += -std=c99 -Wall -Wextra -Wundef -Wshadow -Wstrict-prototypes -DLZ4_VERSION=\"$(RELEASE)\" +CFLAGS += -std=c99 -Wall -Wextra -Wundef -Wshadow -Wcast-align -Wstrict-prototypes -DLZ4_VERSION=\"$(RELEASE)\" FLAGS = -I.. $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) BINDIR=$(PREFIX)/bin -- cgit v0.12