How can I disable compiler warnings in Eclipse on a file specific basis? [duplicate]

Ensure the files are under the gen folder, the typical home for all generated .java files. Then in the project properties, under Java Build Path, set Ignore optional compile problems for that folder to Yes. If your project structure requires your files be in a folder other than gen, add that folder to the Java … Read more

Compiler warning for function defined without prototype in scope?

If you need an option which works on both gcc and clang, your best bet is probably -Wmissing-prototypes. As indicated in the gcc documentation, this will trigger if a global function is defined and either: There was no previous declaration; or The previous declaration had no prototype. It does not complain if the previous declaration … Read more

C++ Boost: what’s the cause of this warning?

It is nothing to worry about. In the last few releases of MSVC, they’ve gone into full security-paranoia mode. std::copy issues this warning when it is used with raw pointers, because when used incorrectly, it can result in buffer overflows. Their iterator implementation performs bounds checking to ensure this doesn’t happen, at a significant performance … Read more