Dev:Compiling

From Eggdrop Wiki

(Difference between revisions)
Jump to: navigation, search
Thommey (Talk | contribs)
(Created page with 'This page is a list of useful compiler flags to test compile Eggdrop to get the maximum out of warnings (add -Werror for hard fail). {| class="wikitable sortable" style={{pretty…')
Newer edit →

Revision as of 21:43, 4 October 2017

This page is a list of useful compiler flags to test compile Eggdrop to get the maximum out of warnings (add -Werror for hard fail).

Compiler Flags
gcc 4.x -Wall -Wextra -Wlogical-op -Wjump-misses-init -Wdouble-promotion -Wshadow -Wformat=2
gcc 5.x -Wall -Wextra -Wlogical-op -Wjump-misses-init -Wdouble-promotion -Wshadow -Wformat=2
gcc 6.x -Wall -Wextra -Wlogical-op -Wjump-misses-init -Wdouble-promotion -Wshadow -Wformat=2 -Wnull-dereference -Wduplicated-cond
gcc 7.x -Wall -Wextra -Wlogical-op -Wjump-misses-init -Wdouble-promotion -Wshadow -Wformat=2 -Wnull-dereference -Wduplicated-cond -Wduplicated-branches -Wrestrict
Personal tools