summaryrefslogtreecommitdiff
path: root/src/scheme/make-const
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-12-12 17:59:26 -0800
committerKeith Packard <keithp@keithp.com>2017-12-12 18:09:11 -0800
commitca27d467198c556be483961a6ca3b8f97bbe96a6 (patch)
tree239b5ced573d834a1679ed4b2f725c6dfd77bf97 /src/scheme/make-const
parent4bfce37e7567d9c2a09ea4da8113e7639516ed6e (diff)
altos/scheme: More compiler warning cleanups
Make local funcs static. Don't mix decls and code.x Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/scheme/make-const')
-rw-r--r--src/scheme/make-const/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scheme/make-const/Makefile b/src/scheme/make-const/Makefile
index caf7acbe..438b6a79 100644
--- a/src/scheme/make-const/Makefile
+++ b/src/scheme/make-const/Makefile
@@ -10,7 +10,7 @@ HDRS=$(SCHEME_HDRS) ao_scheme_os.h
OBJS=$(SRCS:.c=.o)
CC=cc
-CFLAGS=-DAO_SCHEME_MAKE_CONST -O0 -g -I. -Wall -Wextra
+CFLAGS=-DAO_SCHEME_MAKE_CONST -O2 -g -I. -Wall -Wextra -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast
.c.o:
$(CC) -c $(CFLAGS) $< -o $@