gcc compilation flags for C programs to catch almost all errors.

From: Amit
Date: Tue Oct 18 2022 - 00:50:07 EST


gcc compilation flags for C programs to catch almost all errors:

-Wall -Werror -Wextra -Wundef -Wunreachable-code -Winit-self
-Wparentheses -Wconversion -Wsign-conversion -Wsign-compare
-Werror-implicit-function-declaration -Wmissing-prototypes
-Wmissing-declarations -Wformat-security