Post #3793332
2026-07-13 20:47 UTC
What's the one thing you can do to most improve your C programming skills?
In my opinion, adding -Wall -Wextra -Werror to your CFLAGS, is the answer.
This flag combo turns on a lot more error checking, and turns all "warnings" into hard errors that stop the compiler in its tracks. This forces you to fix things that technically compile but shouldn't.
A lot of commonly done things in C technically generate warnings. Treating "warnings" as "errors that compile" is key to sharpening your skills.
Replies (1)
-
@calx@infosec.exchange 2026-07-13 20:50
@mos_8502@studio8502.ca i add `-Wpedantic` too