1
1

Ensure to actually exit the non-voice function, even in non-debug

builds (i.e., where assert() is preprocessed away).

This commit was SVN r26524.
Этот коммит содержится в:
Jeff Squyres 2012-05-29 23:41:23 +00:00
родитель 99c5afb397
Коммит b3fbb0a2d5

Просмотреть файл

@ -376,7 +376,11 @@ hwloc_pci_compare_busids(struct hwloc_obj *a, struct hwloc_obj *b)
if (a->attr->pcidev.func > b->attr->pcidev.func)
return HWLOC_PCI_BUSID_HIGHER;
/* Should never reach here. Abort on both debug builds and
non-debug builds */
assert(0);
fprintf(stderr, "Bad assertion in hwloc %s:%d (aborting)\n", __FILE__, __LINE__);
exit(1);
}
static void