Clean up CMakeLists in all C++ examples
+ Rename output executables to match directory structure + Remove libraries for small examples + Supress -Wreturn-type warnings for singleton that is intentionally not copyable
This commit is contained in:
@@ -17,9 +17,15 @@ private:
|
||||
std::string message;
|
||||
|
||||
// Don't allow copying of this class
|
||||
// Ignore -Wreturn-type warnings; It's intentional for this pattern
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wreturn-type"
|
||||
Singleton() { message = "New singleton\n";}
|
||||
Singleton(const Singleton &) {}
|
||||
Singleton &operator=(const Singleton &) {}
|
||||
// Unmatched pop reverts GCC to commandline options
|
||||
#pragma GCC diagnostic pop
|
||||
#pragma GCC diagnostic pop
|
||||
};
|
||||
|
||||
#endif // SINGLETON_H
|
||||
|
||||
Reference in New Issue
Block a user