summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2022-11-28 14:18:36 +0100
committerAleksander Morgado <aleksandermj@chromium.org>2022-12-01 12:07:24 +0000
commitc46a38dfe80a06922bf8f5c29d08d96ebaba1043 (patch)
treeeaeb5d4fad968b923f16ba78deac564109837756
parent448c4c3a282f57137a2d9e247e9451a7a91583b7 (diff)
downloadlibmbim-c46a38dfe80a06922bf8f5c29d08d96ebaba1043.tar.gz
libmbim-glib,compat: ignore typedef redefinition warnings in compat code
-rw-r--r--src/libmbim-glib/mbim-compat.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/libmbim-glib/mbim-compat.h b/src/libmbim-glib/mbim-compat.h
index 4768bd3..4447cd2 100644
--- a/src/libmbim-glib/mbim-compat.h
+++ b/src/libmbim-glib/mbim-compat.h
@@ -50,8 +50,15 @@ typedef int MbimDeprecatedRegistrationFlag;
/* 'Service Subscriber List' rename to 'Service Subscribe List' */
/* The following type exists just so that we can get deprecation warnings */
+#if defined(__clang__)
+# pragma clang diagnostic push
+# pragma clang diagnostic ignored "-Wtypedef-redefinition"
+#endif
G_DEPRECATED
typedef int MbimDeprecatedCidBasicConnect;
+#if defined(__clang__)
+# pragma clang diagnostic pop
+#endif
/**
* MBIM_CID_BASIC_CONNECT_DEVICE_SERVICE_SUBSCRIBER_LIST:
@@ -108,8 +115,15 @@ gboolean mbim_message_device_service_subscriber_list_response_parse (
* MbimLteAttachStatus struct */
/* The following type exists just so that we can get deprecation warnings */
+#if defined(__clang__)
+# pragma clang diagnostic push
+# pragma clang diagnostic ignored "-Wtypedef-redefinition"
+#endif
G_DEPRECATED
typedef int MbimDeprecatedCidMsBasicConnectExtensions;
+#if defined(__clang__)
+# pragma clang diagnostic pop
+#endif
/**
* MBIM_CID_MS_BASIC_CONNECT_EXTENSIONS_LTE_ATTACH_STATUS:
@@ -230,8 +244,15 @@ gboolean mbim_message_ms_basic_connect_extensions_lte_attach_status_notification
/* Network errors fixup */
/* The following type exists just so that we can get deprecation warnings */
+#if defined(__clang__)
+# pragma clang diagnostic push
+# pragma clang diagnostic ignored "-Wtypedef-redefinition"
+#endif
G_DEPRECATED
typedef int MbimDeprecatedNwError;
+#if defined(__clang__)
+# pragma clang diagnostic pop
+#endif
/**
* MBIM_NW_ERROR_UNKNOWN:
@@ -247,8 +268,15 @@ typedef int MbimDeprecatedNwError;
/* Rename blacklist to denylist */
/* The following type exists just so that we can get deprecation warnings */
+#if defined(__clang__)
+# pragma clang diagnostic push
+# pragma clang diagnostic ignored "-Wtypedef-redefinition"
+#endif
G_DEPRECATED
typedef int MbimDeprecatedCidMsBasicConnectExtensions;
+#if defined(__clang__)
+# pragma clang diagnostic pop
+#endif
/**
* MBIM_CID_MS_BASIC_CONNECT_EXTENSIONS_NETWORK_BLACKLIST: