summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: