summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorLee Bousfield <ljbousfield@gmail.com>2025-03-18 18:46:28 -0500
committerGitHub <noreply@github.com>2025-03-19 00:46:28 +0100
commitc8d80a292012f036e1a1d3eb3b0501e3e3917872 (patch)
treebfeb4363137d01ff6da191bec5ea0b9ce69f88a9 /src/plugins
parent03385fc07f82bb891ded33db464397d867eb503d (diff)
ci: Fail on warnings (#9668)
* ci: Fail on warnings * misc: Fix compiler warnings
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/PluginAPI.hpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/plugins/PluginAPI.hpp b/src/plugins/PluginAPI.hpp
index fbacbaab..0f333294 100644
--- a/src/plugins/PluginAPI.hpp
+++ b/src/plugins/PluginAPI.hpp
@@ -61,9 +61,10 @@ struct SVersionInfo {
// C ABI is needed to prevent symbol mangling, but we don't actually need C compatibility,
// so we ignore this warning about return types that are potentially incompatible with C.
-// Clang supports this pragma too.
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wreturn-type-c-linkage"
+#ifdef __clang__
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wreturn-type-c-linkage"
+#endif
class IHyprLayout;
class CWindow;
@@ -322,4 +323,6 @@ APICALL inline EXPORT const char* __hyprland_api_get_client_hash() {
}
// NOLINTEND
-#pragma GCC diagnostic pop
+#ifdef __clang__
+#pragma clang diagnostic pop
+#endif