Paul H. Hargrove, le Sat 18 Feb 2012 00:58:27 +0100, a écrit :
> I am not sure of the risk/reward on applying this change, however.
> Gcc seems to be happy enough either way as far as I could tell.
> -static __hwloc_inline const char * __hwloc_attribute_pure
> +static __hwloc_inline __hwloc_attribute_pure const char *
> hwloc_obj_get_info_by_name(hwloc_obj_t obj, const char *name)
Does it still complain if using the following?
> static __hwloc_inline const char *
> hwloc_obj_get_info_by_name(hwloc_obj_t obj, const char *name) __hwloc_attribute_pure
That'd be safer to make sure that the attribute is applied to the
function, not something else.