Category "compiler-warnings"

How to avoid VS Code warning: "[myfile].java is a non-project file, only syntax errors are reported"

I am running a build task in a java project in Visual Studio Code. The warning in the "PROBLEMS" tab: [myfile].java is a non-project file, only syntax errors a

How to turn on (literally) ALL of GCC's warnings?

I would like to enable -- literally -- ALL of the warnings that GCC has. (You'd think it would be easy...) You'd think -Wall might do the trick, but nope! Stil

Why should I always enable compiler warnings?

I often hear that when compiling C and C++ programs I should "always enable compiler warnings". Why is this necessary? How do I do that? Sometimes I also hear