1#!/bin/sh 2 3# Warnings enabled 4CFLAGS="-Wall -Wextra" 5 6CFLAGS+=" -Wbad-function-cast" 7#CFLAGS+=" -Wcast-align" 8CFLAGS+=" -Wchar-subscripts" 9CFLAGS+=" -Wempty-body" 10CFLAGS+=" -Wformat" 11CFLAGS+=" -Wformat-security" 12CFLAGS+=" -Winit-self" 13CFLAGS+=" -Winline" 14CFLAGS+=" -Wmissing-declarations" 15CFLAGS+=" -Wmissing-include-dirs" 16CFLAGS+=" -Wmissing-prototypes" 17CFLAGS+=" -Wnested-externs" 18CFLAGS+=" -Wold-style-definition" 19CFLAGS+=" -Wpointer-arith" 20CFLAGS+=" -Wredundant-decls" 21CFLAGS+=" -Wshadow" 22CFLAGS+=" -Wstrict-prototypes" 23CFLAGS+=" -Wswitch-enum" 24CFLAGS+=" -Wundef" 25CFLAGS+=" -Wuninitialized" 26CFLAGS+=" -Wunused" 27CFLAGS+=" -Wwrite-strings" 28CFLAGS+=" -fdiagnostics-color=auto" 29 30# warnings disabled on purpose 31CFLAGS+=" -Wno-unused-parameter" 32CFLAGS+=" -Wno-unused-function" 33CFLAGS+=" -Wno-deprecated-declarations" 34 35# should be removed and the code fixed 36CFLAGS+=" -Wno-incompatible-pointer-types-discards-qualifiers" 37 38# fails on warning 39CFLAGS+=" -Werror" 40 41./autogen.sh 42