Skip to content

Commit

Permalink
private/misc.h: use HWLOC_HAVE_ATTRIBUTE_UNUSED instead of __HWLOC_HA…
Browse files Browse the repository at this point in the history
…VE_ATTRIBUTE_UNUSED

The latter is defined in public headers depending on whether private
headers are available or not.
The formet is the official internal thing.

Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
  • Loading branch information
bgoglin committed Oct 22, 2021
1 parent b83b366 commit 9bafca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/private/misc.h
Expand Up @@ -504,7 +504,7 @@ hwloc__obj_type_is_icache(hwloc_obj_type_t type)
} \
} while(0)
#else /* HAVE_USELOCALE */
#if __HWLOC_HAVE_ATTRIBUTE_UNUSED
#if HWLOC_HAVE_ATTRIBUTE_UNUSED
#define hwloc_localeswitch_declare int __dummy_nolocale __hwloc_attribute_unused
#define hwloc_localeswitch_init()
#else
Expand Down

0 comments on commit 9bafca1

Please sign in to comment.