diff options
| author | Lee Bousfield <ljbousfield@gmail.com> | 2025-03-18 18:46:28 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-19 00:46:28 +0100 |
| commit | c8d80a292012f036e1a1d3eb3b0501e3e3917872 (patch) | |
| tree | bfeb4363137d01ff6da191bec5ea0b9ce69f88a9 /src/plugins | |
| parent | 03385fc07f82bb891ded33db464397d867eb503d (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.hpp | 11 |
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 |
