GCC enables `-Wmaybe-uninitialized` by default with `-Wall`, and it
reports what looks like false positives with boost::optional types
See:
- https://svn.boost.org/trac10/ticket/12513
- https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78044
* your function to std::function (not directly std::bind or a lambda function) so the class can detect which argument types
* it wants. These arguments may only be of basic types (int, float, etc.) or std::string.
*/
+
+#if defined(__GNUC__) && !defined(__clang__)
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
+#endif
+
class LuaContext {
struct ValueInRegistry;
template<typename TFunctionObject, typename TFirstParamType> struct Binder;
}
};
+#if defined(__GNUC__) && !defined(__clang__)
+#pragma GCC diagnostic pop
+#endif
+
#endif