summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-08-17 13:23:17 -0400
committerDavid Robillard <d@drobilla.net>2022-08-17 13:23:17 -0400
commitd8e1c0a515d4bb5818c7e6185d75a96f285d253d (patch)
treeab460af1e422d2432781f6e8fccd376947cbdbcd
parent3e5cf3400273b0e4f8f96a3a87d2b9e57574eeec (diff)
downloadpatchage-d8e1c0a515d4bb5818c7e6185d75a96f285d253d.tar.gz
patchage-d8e1c0a515d4bb5818c7e6185d75a96f285d253d.tar.bz2
patchage-d8e1c0a515d4bb5818c7e6185d75a96f285d253d.zip
Remove weird GCC optimization hacks from fmt
This somehow breaks the build with gcc 10.2.1 on Debian 11: Patchage.cpp:907:1: error: macro "__OPTIMIZE__" is not used [-Werror=unused-macros] Header libraries messing with optimization flags is wildly inappropriate anyway.
-rw-r--r--subprojects/fmt/include/fmt/core.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/subprojects/fmt/include/fmt/core.h b/subprojects/fmt/include/fmt/core.h
index 0e7843b..a3096d5 100644
--- a/subprojects/fmt/include/fmt/core.h
+++ b/subprojects/fmt/include/fmt/core.h
@@ -282,9 +282,6 @@
// Enable minimal optimizations for more compact code in debug mode.
FMT_GCC_PRAGMA("GCC push_options")
-#if !defined(__OPTIMIZE__) && !defined(__NVCOMPILER)
-FMT_GCC_PRAGMA("GCC optimize(\"Og\")")
-#endif
FMT_BEGIN_NAMESPACE
FMT_MODULE_EXPORT_BEGIN