diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2022-11-28 14:18:36 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksandermj@chromium.org> | 2022-12-01 12:07:24 +0000 |
commit | c46a38dfe80a06922bf8f5c29d08d96ebaba1043 (patch) | |
tree | eaeb5d4fad968b923f16ba78deac564109837756 | |
parent | 448c4c3a282f57137a2d9e247e9451a7a91583b7 (diff) | |
download | libmbim-c46a38dfe80a06922bf8f5c29d08d96ebaba1043.tar.gz |
libmbim-glib,compat: ignore typedef redefinition warnings in compat code
-rw-r--r-- | src/libmbim-glib/mbim-compat.h | 28 |
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: |