diff --git a/src/postprocessing/sqlite/extern/sqlite3.c b/src/postprocessing/sqlite/extern/sqlite3.c index 393652e0b9daaf559a5fc3dc7cd305d8cd8cba51..0395a6699356e6acacaf1ee0f88b3ea47d30716a 100644 --- a/src/postprocessing/sqlite/extern/sqlite3.c +++ b/src/postprocessing/sqlite/extern/sqlite3.c @@ -42,6 +42,11 @@ #pragma clang diagnostic ignored "-Wparentheses-equality" #endif +// Disable gcc warnings +#ifdef WALBERLA_CXX_COMPILER_IS_GNU +#pragma GCC diagnostic ignored "-Wstringop-overflow" +#endif + // Disable thread safety and load extension - compilable on all systems #define SQLITE_THREADSAFE 0 #define SQLITE_OMIT_LOAD_EXTENSION 1 diff --git a/src/python_coupling/basic_exports/BasicExports.cpp b/src/python_coupling/basic_exports/BasicExports.cpp index a5b1b91627047644dbc7e93c09eec5b918236c18..837122b5a4012502f8833584308557621bd11944 100644 --- a/src/python_coupling/basic_exports/BasicExports.cpp +++ b/src/python_coupling/basic_exports/BasicExports.cpp @@ -96,7 +96,14 @@ struct NumpyFloatConversion { handle<> x(borrowed(pyObj)); object o(x); +#ifdef WALBERLA_CXX_COMPILER_IS_GNU +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wmaybe-uninitialized" +#endif T value = extract<T>(o.attr("__float__")()); +#ifdef WALBERLA_CXX_COMPILER_IS_GNU +#pragma GCC diagnostic pop +#endif void* storage =( (boost::python::converter::rvalue_from_python_storage<T>*) data)->storage.bytes; new (storage) T(value); data->convertible = storage;