Usefull parameters for GCC

Colored output (4.9.1)
-fdiagnostics-color=auto

GCC 14 (to be released appx. April/May 2024 - Fedora 40) makes the following errors by default:

    -Werror=int-conversion
    -Werror=implicit-function-declaration
    -Werror=implicit-int
    -Werror=incompatible-pointer-types
    -Werror=return-mismatch ('new' warning in GCC 14, split out from -Wreturn-type)
    -Werror=declaration-missing-parameter-type (new warning in GCC 14)

All of these were either invalid in C99, invalid even in C89, or extremely dubious. Compilers just tolerated them as quasi-extensions until now to avoid disruption.

Log In