This should do the trick: #pragma warning (error: 4715)
.
Or the /we4715
command line option (see /w, /W0, /W1, /W2, /W3, /W4, /w1, /w2, /w3, /w4, /Wall, /wd, /we, /wo, /Wv, /WX (Warning Level) (courtesy of Tom Sigerdas)).
More Related Contents:
- Which is more efficient: Return a value vs. Pass by reference?
- Why do we need to use `int main` and not `void main` in C++? [duplicate]
- Matrix Printing using Pointers [closed]
- Top-level const doesn’t influence a function signature
- Automatically stop Visual C++ 2008 build at first compile error?
- Is there a way to pass auto as an argument in C++?
- Return a “NULL” object if search result not found
- Difference between [square brackets] and *asterisk
- Should I return EXIT_SUCCESS or 0 from main()?
- Using multiple .cpp files in c++ program?
- Is it a good practice to define C++ functions inside header files? [duplicate]
- Should I pass an std::function by const-reference?
- Why use a const member function?
- C++ inherit from multiple base classes with the same virtual function name
- debugging information cannot be found or does not match visual studio’s
- App does not run with VS 2008 SP1 DLLs, previous version works with RTM versions
- Declare variables at top of function or in separate scopes?
- in Visual Studio 2010 or 2008 [duplicate]
- Refreshing the auto complete (IntelliSense) database in Visual Studio
- xcode with boost : linker(Id) Warning about visibility settings
- Pointer to array of unspecified size “(*p)[]” illegal in C++ but legal in C
- Problems with running EXE file built with Visual Studio on another computer
- What is a C++11 extension [-Wc++11-extensions]
- About Pointers To Functions in function declarations
- How to increase error limit in Visual Studio?
- Template type deduction in C++ for Class vs Function?
- OpenAL: How to create simple “Microphone Echo” programm?
- non-const pointer argument to a const double pointer parameter
- How do C++ progs get their return value, when a return is not specified in the function?
- Can I get polymorphic behavior without using virtual functions?