You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
971 B
41 lines
971 B
#!/bin/sh |
|
|
|
# Warnings enabled |
|
CFLAGS="-Wall -Wextra" |
|
|
|
CFLAGS+=" -Wbad-function-cast" |
|
#CFLAGS+=" -Wcast-align" |
|
CFLAGS+=" -Wchar-subscripts" |
|
CFLAGS+=" -Wempty-body" |
|
CFLAGS+=" -Wformat" |
|
CFLAGS+=" -Wformat-security" |
|
CFLAGS+=" -Winit-self" |
|
CFLAGS+=" -Winline" |
|
CFLAGS+=" -Wmissing-declarations" |
|
CFLAGS+=" -Wmissing-include-dirs" |
|
CFLAGS+=" -Wmissing-prototypes" |
|
CFLAGS+=" -Wnested-externs" |
|
CFLAGS+=" -Wold-style-definition" |
|
CFLAGS+=" -Wpointer-arith" |
|
CFLAGS+=" -Wredundant-decls" |
|
CFLAGS+=" -Wshadow" |
|
CFLAGS+=" -Wstrict-prototypes" |
|
CFLAGS+=" -Wswitch-enum" |
|
CFLAGS+=" -Wundef" |
|
CFLAGS+=" -Wuninitialized" |
|
CFLAGS+=" -Wunused" |
|
CFLAGS+=" -Wwrite-strings" |
|
CFLAGS+=" -fdiagnostics-color=auto" |
|
|
|
# warnings disabled on purpose |
|
CFLAGS+=" -Wno-unused-parameter" |
|
CFLAGS+=" -Wno-unused-function" |
|
CFLAGS+=" -Wno-deprecated-declarations" |
|
|
|
# should be removed and the code fixed |
|
CFLAGS+=" -Wno-incompatible-pointer-types-discards-qualifiers" |
|
|
|
# fails on warning |
|
CFLAGS+=" -Werror" |
|
|
|
./autogen.sh
|
|
|