I have attached a patch against 0.9.1rc2 to get rid of some compilation
warnings (tested with gcc, but should be fine for other compilers as
well, AFAICT). Can someone take a look at this and possibly apply some
variant of it to the 0.9 branch (and trunk)? Please pay specific
attention to the return values and additional code this patch adds for
error cases; it is possible they might introduce a bug somewhere because
of my lack of knowledge on hwloc's internals.