Comment

Comment by jgrahamc

I prefer maximum warnings and use of #pragma to disable a warning at a specific point when I know the warning is useless/wrong. That way I can get to a totally clean build with zero warnings output. The last significant piece of C I wrote:

    # Turn on absolutely all warnings and turn them into errors
    
    CFLAGS += -g -Wall -Wextra -Wno-unused-parameter -Werror
https://github.com/cloudflare/keyless/blob/master/Makefile#L...

The reason I do this is if I leave some warnings in I can get complacent "oh, there's always a few warnings" or "that's expected" and then miss something. So, I like all the warnings and warnings treated as errors.

parent jgrahamc 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton