News for hackers. Stuff that matters.
Re:Rust things I miss in C by dbcurtis on Monday February 19, 2018 @10:13AM (#16413319)
That is pretty challenging, actually. The C language spec allows about anything with the semi-colons in the right place. Without more strictures in the language spec there is nothing to raise errors about.

Now you can ask for lots of warnings, -wall, but I suspect many people turn that off after the first ASCII tsunami.

Re:Rust things I miss in C by leetcrew on Monday February 19, 2018 @03:52PM (#16415644)
another thing worth noting is that many projects need to support multiple platforms, which means multiple different compilers. good luck getting a large project to build on clang or gcc and msvc without warnings. i've run into cases at work where it seems like i'm going to get a warning from at least one of the compilers no matter what i do (barring complicated #ifdef/#pragma salad).
Re:Rust things I miss in C by loeg on Monday February 19, 2018 @10:57AM (#16413603)
-Wall is a pretty low bar nowadays. There's some resistance to adding more to it, so you also have to enable -Wextra. I do at least those for all new C code.

And even those two doesn't get you everything. Clang's got -Weverything, but the developers suggest it's an internal feature and shouldn't be used. From there you have to manually identify and add -Wfoo options.