summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2022-11-28 14:18:16 +0100
committerAleksander Morgado <aleksander@aleksander.es>2022-11-28 14:18:16 +0100
commit448c4c3a282f57137a2d9e247e9451a7a91583b7 (patch)
treef6d181ad97dd9d65a7ad3a2edf22eb3f446b0b24
parentbd46f77b9725c9e010f31c357446484a9aff03e2 (diff)
downloadlibmbim-448c4c3a282f57137a2d9e247e9451a7a91583b7.tar.gz
libmbim-glib,compat: clang understands pragma GCC rules
-rw-r--r--src/libmbim-glib/mbim-compat.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/libmbim-glib/mbim-compat.h b/src/libmbim-glib/mbim-compat.h
index a06a0e3..4768bd3 100644
--- a/src/libmbim-glib/mbim-compat.h
+++ b/src/libmbim-glib/mbim-compat.h
@@ -164,17 +164,12 @@ typedef MbimDeprecatedLteAttachStatus MbimLteAttachStatus;
G_DEPRECATED
void mbim_lte_attach_status_free (MbimDeprecatedLteAttachStatus *var);
-#if defined(__clang__)
-# pragma clang diagnostic push
-# pragma clang diagnostic ignored "-Wdeprecated-declarations"
-#elif defined(__GNUC__)
+#if defined(__clang__) || defined(__GNUC__)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
G_DEFINE_AUTOPTR_CLEANUP_FUNC (MbimLteAttachStatus, mbim_lte_attach_status_free)
-#if defined(__clang__)
-# pragma clang diagnostic pop
-#elif defined(__GNUC__)
+#if defined(__clang__) || defined (__GNUC__)
# pragma GCC diagnostic pop
#endif