GCC options for strictest C code? [duplicate]

I’d recommend using: -Wall -Wextra -std=c89 -pedantic -Wmissing-prototypes -Wstrict-prototypes \ -Wold-style-definition You should compile with -O as well as -g as some warnings are only available when the optimizer is used (actually, I usually use -O3 for spotting the problems). You might prefer -std=gnu89 as that disables fewer extensions in the libraries. OTOH, if you’re … Read more

Assigning 128-bit integer in C

Am I doing something wrong or is this a bug in gcc? The problem is in 47942806932686753431 part, not in __uint128_t p. According to gcc docs there’s no way to declare 128 bit constant: There is no support in GCC for expressing an integer constant of type __int128 for targets with long long integer less … Read more

what is meanging of gcc option “-fmessage-length”?

I didnt find it in GCC Command-Line Options. That’s because you’re looking at “a modified version of the Command-Line Options section of the GCC Manual.” This is the official list of all possible GCC command-line options, which leads to this section: “3.7 Options to Control Diagnostic Messages Formatting”. This is what the section has to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)