News for hackers. Stuff that matters.
Re:Curl is C (2017) by account42 on Friday February 19, 2021 @05:09AM (#26191395)
I don't think this should have a warning by default (or even in -Wall -Wextra). The code is not unreasonable - spamming warnings for such code will only get people to ignore warnings.

It is something that a static analyzer should warn though since only having one implementation of Do indicates that there might be an opportunity to remove the abstraction in the code.

Re:Curl is C (2017) by enriquto on Friday February 19, 2021 @05:49AM (#26191675)
Of course it should not print a warning by default, but it would be nice if at least -Wextra said something.