ignore warning about anonymous union in Windows code

pull/816/head
Brad House 7 months ago
parent a18a6ad3a1
commit 932bec264c
  1. 10
      src/lib/ares_event_win32.c

@ -25,9 +25,13 @@
*/
/* Uses an anonymous union */
#if defined(__clang__)
#if defined(__clang__) || defined(__GNUC__)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wc11-extensions"
# if defined(__clang__)
# pragma GCC diagnostic ignored "-Wc11-extensions"
# else
# pragma GCC diagnostic ignored "-Wpedantic"
# endif
#endif
#include "ares_private.h"
@ -965,6 +969,6 @@ const ares_event_sys_t ares_evsys_win32 = { "win32",
ares_evsys_win32_wait };
#endif
#if defined(__clang__)
#if defined(__clang__) || defined(__GNUC__)
# pragma GCC diagnostic pop
#endif

Loading…
Cancel
Save