Dev:Compiling

From Eggdrop Wiki

(Difference between revisions)
Jump to: navigation, search
 
Line 5: Line 5:
! Compiler !! Flags
! Compiler !! Flags
|-
|-
-
| gcc 4.x || -Wall -Wextra -Wimplicit-function-declaration -Wmissing-prototypes -Wstrict-prototypes -Wlogical-op -Wjump-misses-init -Wdouble-promotion -Wshadow -Wformat=2 -Wno-format-nonliteral -Wno-unused-parameter
+
| gcc 4.x || -Wall -Wextra -Wimplicit-function-declaration -Wmissing-prototypes -Wstrict-prototypes -Wlogical-op -Wjump-misses-init -Wdouble-promotion -Wformat=2 -Wno-format-nonliteral -Wno-unused-parameter
|-
|-
-
| gcc 5.x || -Wall -Wextra -Wimplicit-function-declaration -Wmissing-prototypes -Wstrict-prototypes -Wlogical-op -Wjump-misses-init -Wdouble-promotion -Wshadow -Wformat=2 -Wno-format-nonliteral -Wno-unused-parameter
+
| gcc 5.x || -Wall -Wextra -Wimplicit-function-declaration -Wmissing-prototypes -Wstrict-prototypes -Wlogical-op -Wjump-misses-init -Wdouble-promotion -Wformat=2 -Wno-format-nonliteral -Wno-unused-parameter
|-
|-
-
| gcc 6.x || -Wall -Wextra -Wimplicit-function-declaration -Wmissing-prototypes -Wstrict-prototypes -Wlogical-op -Wjump-misses-init -Wdouble-promotion -Wshadow -Wformat=2 -Wno-format-nonliteral -Wno-unused-parameter -Wnull-dereference -Wduplicated-cond
+
| gcc 6.x || -Wall -Wextra -Wimplicit-function-declaration -Wmissing-prototypes -Wstrict-prototypes -Wlogical-op -Wjump-misses-init -Wdouble-promotion -Wformat=2 -Wno-format-nonliteral -Wno-unused-parameter -Wnull-dereference -Wduplicated-cond
|-
|-
-
| gcc 7.x || -Wall -Wextra -Wimplicit-function-declaration -Wmissing-prototypes -Wstrict-prototypes -Wlogical-op -Wjump-misses-init -Wdouble-promotion -Wshadow -Wformat=2 -Wno-format-nonliteral -Wno-unused-parameter -Wnull-dereference -Wduplicated-cond -Wduplicated-branches -Wrestrict
+
| gcc 7.x || -Wall -Wextra -Wimplicit-function-declaration -Wmissing-prototypes -Wstrict-prototypes -Wlogical-op -Wjump-misses-init -Wdouble-promotion -Wformat=2 -Wno-format-nonliteral -Wno-unused-parameter -Wnull-dereference -Wduplicated-cond -Wduplicated-branches -Wrestrict
|-
|-
|}
|}
 +
 +
Note: -Wshadow removed for now, too many warnings

Current revision as of 23:02, 4 October 2017

This page is a list of useful compiler flags to test compile Eggdrop to get the maximum out of warnings.

Compiler Flags
gcc 4.x -Wall -Wextra -Wimplicit-function-declaration -Wmissing-prototypes -Wstrict-prototypes -Wlogical-op -Wjump-misses-init -Wdouble-promotion -Wformat=2 -Wno-format-nonliteral -Wno-unused-parameter
gcc 5.x -Wall -Wextra -Wimplicit-function-declaration -Wmissing-prototypes -Wstrict-prototypes -Wlogical-op -Wjump-misses-init -Wdouble-promotion -Wformat=2 -Wno-format-nonliteral -Wno-unused-parameter
gcc 6.x -Wall -Wextra -Wimplicit-function-declaration -Wmissing-prototypes -Wstrict-prototypes -Wlogical-op -Wjump-misses-init -Wdouble-promotion -Wformat=2 -Wno-format-nonliteral -Wno-unused-parameter -Wnull-dereference -Wduplicated-cond
gcc 7.x -Wall -Wextra -Wimplicit-function-declaration -Wmissing-prototypes -Wstrict-prototypes -Wlogical-op -Wjump-misses-init -Wdouble-promotion -Wformat=2 -Wno-format-nonliteral -Wno-unused-parameter -Wnull-dereference -Wduplicated-cond -Wduplicated-branches -Wrestrict

Note: -Wshadow removed for now, too many warnings

Personal tools