move all the parameter related functions into the lib-mime.
[apps/madmutt.git] / cflags.mk
1 ifneq ($(filter 4.%,$(shell gcc -dumpversion)),)
2   GCC4=1
3 endif
4
5 LDFLAGS += -Wl,--warn-common
6
7 CFLAGS := -g
8
9 # Use pipes and not temp files.
10 CFLAGS += -pipe
11 # optimize even more
12 CFLAGS += -O2
13 # let the type char be unsigned by default
14 CFLAGS += -funsigned-char
15 CFLAGS += -fstrict-aliasing
16 # turn on all common warnings
17 CFLAGS += -Wall
18 # turn on extra warnings
19 CFLAGS += $(if $(GCC4),-Wextra,-W)
20 # treat warnings as errors
21 #CFLAGS += -Werror
22 CFLAGS += -Wchar-subscripts
23 # warn about undefined preprocessor identifiers
24 CFLAGS += -Wundef
25 # warn about local variable shadowing another local variable
26 CFLAGS += -Wshadow
27 # warn about casting of pointers to increased alignment requirements
28 CFLAGS += -Wcast-align
29 # make string constants const
30 CFLAGS += -Wwrite-strings
31 # warn about implicit conversions with side effects
32 # fgets, calloc and friends take an int, not size_t...
33 #CFLAGS += -Wconversion
34 # warn about comparisons between signed and unsigned values
35 CFLAGS += -Wsign-compare
36 # warn about unused declared stuff
37 CFLAGS += -Wunused
38 # don not warn about unused return value
39 CFLAGS += -Wno-unused-value
40 # warn about variable use before initialization
41 CFLAGS += -Wuninitialized
42 # warn about pointer arithmetic on void* and function pointers
43 CFLAGS += -Wpointer-arith
44 # warn about multiple declarations
45 CFLAGS += -Wredundant-decls
46 # warn if the format string is not a string literal
47 #CFLAGS += -Wformat-nonliteral