Stephan Gatzka
345d57e9e5
Make print_preallocated static.
...
Otherwise compilation failes due to missing prototypes.
2016-11-28 20:21:38 +01:00
Stephan
5cfda2292f
Warn if compiler optimizes based on asumption signed overflow does not occur.
...
This switch is only active when making a release build.
2016-11-28 09:12:17 +01:00
Stephan
038b04d80a
Take out len from condition check.
...
Otherwise, the check is just undefined behaviour. gcc even takes out
this check because len can never be zero if len does not wrap around.
Found with -Wstrict-overflow=2
2016-11-28 09:11:14 +01:00
Stephan Gatzka
29b6643bab
Warn about missing prototypes.
...
This switch warns about missing prototypes. It does not warn if
functions are declared static. So this switch encourages the usage of
static whenever possible. This enables the compiler to perform inlining.
2016-11-27 18:22:12 +01:00
Stephan Gatzka
a8e1368697
Make function static when possible.
...
This is a prerequisite to later enable -Wmissing-prototypes.
2016-11-27 18:20:58 +01:00
Stephan Gatzka
bea0be48b6
Perform additional format checks.
2016-11-27 18:20:41 +01:00
Stephan Gatzka
91d11cd050
Warn if casting a pointer increases alignment of target.
2016-11-27 18:19:52 +01:00
Stephan Gatzka
9591ecddbe
Warn about variables initialized by themselves.
2016-11-27 18:19:07 +01:00
Stephan Gatzka
1568015de6
Warn about shadowing variables and functions.
2016-11-27 18:18:00 +01:00
Stephan Gatzka
7ed067e680
Rename some variables to avoid shadowing.
2016-11-27 18:16:28 +01:00