Users of the repeatedly complain that the library crashes, which is
usually caused by providing an error hook which returns to the library.
Let's try warning them more explicitly.
-1,
};
-static void
+static void PCI_NONRET
pci_generic_error(char *msg, ...)
{
va_list args;
int debugging; /* Turn on debugging messages */
/* Functions you can override: */
- void (*error)(char *msg, ...) PCI_PRINTF(1,2); /* Write error message and quit */
+ void (*error)(char *msg, ...) PCI_PRINTF(1,2) PCI_NONRET; /* Write error message and quit */
void (*warning)(char *msg, ...) PCI_PRINTF(1,2); /* Write a warning message */
void (*debug)(char *msg, ...) PCI_PRINTF(1,2); /* Write a debugging message */