1
0
Fork 0
forked from poz/modfetch

very nice and calm comment about casting void* to function pointers

This commit is contained in:
jacekpoz 2024-02-09 15:15:44 +01:00
parent 36b59a2e29
commit 771680ac17
No known key found for this signature in database
GPG key ID: 94E812A8B12AAE3C

View file

@ -256,6 +256,9 @@ int main(int argc, char *argv[]) {
}
dlerror();
// stupid fucking c standard issue
// I'm not fixing this
// https://stackoverflow.com/questions/14134245/iso-c-void-and-function-pointers
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpedantic"
uint8_t (*version_major)(void) = dlsym(handle, "version_major");