Skip to content

antonygggg/gcc-ansi-c-flags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

GCC useful flags for compiling ANSI C and C++

Those flags can be used when running GCC to compile C and C++ source code

for example:

gcc -Wall -Wredundant-decls -Wundef source.c -o opt

flags :

-Wredundant-decls
-Wundef
-Wfloat-equal
-Wunreachable-code
-Wmissing-declarations
-Wmain
-pedantic
-Wextra
-Wall
-Wformat=2
-Wunused-parameter
-Wsign-compare
-Wconversion
-Wsequence-point
-Wdeclaration-after-statement // C and ObjC Only
-Wundef -Wpointer-arith
-Wnested-externs // C and ObjC Only
-Wfloat-conversion

About

GCC useful flags for compiling ANSI C and C++

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published