diff options
author | Alexey Kardashevskiy <aik@ozlabs.ru> | 2021-01-27 19:39:44 +1100 |
---|---|---|
committer | Alexey Kardashevskiy <aik@ozlabs.ru> | 2021-02-12 13:46:29 +1100 |
commit | 2b37b609d2051310e7ac17e3749cb31240db4cdb (patch) | |
tree | 8dba795b11af80e943286929ddf8a3c283ef7d22 | |
parent | a9c62cc7e9f4a6956b33cfa56019f61aab4a73fa (diff) | |
download | SLOF-2b37b609d2051310e7ac17e3749cb31240db4cdb.zip SLOF-2b37b609d2051310e7ac17e3749cb31240db4cdb.tar.gz SLOF-2b37b609d2051310e7ac17e3749cb31240db4cdb.tar.bz2 |
Makefile: Actually compile with -Wextra
-Wextra enables a bunch of rather useful checks which this fixes.
The only exception is -Wno-unused-parameter, one thing at the time.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
-rw-r--r-- | make.rules | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -76,7 +76,7 @@ AR ?= $(CROSS)ar RANLIB ?= $(CROSS)ranlib CPP ?= $(CROSS)cpp -WARNFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -Wformat-security +WARNFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -Wformat-security -Wextra -Wno-unused-parameter CFLAGS ?= -g -O2 -fno-builtin -ffreestanding -nostdinc -msoft-float \ -fno-strict-aliasing -mno-altivec -mabi=no-altivec \ -fno-stack-protector -fno-asynchronous-unwind-tables $(WARNFLAGS) |