# HG changeset patch
# User Barry Tannenbaum <barry.m.tannenbaum@intel.com>
# Date 1439910792 14400
#      Tue Aug 18 11:13:12 2015 -0400
# Node ID 044f1759572ed8ba1afb9cfefac85da0470555ae
# Parent  e38b3339215380631f92eb73915ab5365c8226d3
Suppress annoying warnings about unused variables

diff --git a/include/private/private.h b/include/private/private.h
--- a/include/private/private.h
+++ b/include/private/private.h
@@ -256,7 +256,11 @@
   }                                    \
 } while(0)
 #else /* HAVE_USELOCALE */
+#ifdef _WIN32
+#define hwloc_localeswitch_declare int __dummy_nolocale; (void)__dummy_nolocale
+#else
 #define hwloc_localeswitch_declare int __dummy_nolocale __hwloc_attribute_unused
+#endif
 #define hwloc_localeswitch_init()
 #define hwloc_localeswitch_fini()
 #endif /* HAVE_USELOCALE */
