very nice and calm comment about casting void* to function pointers
This commit is contained in:
parent
36b59a2e29
commit
771680ac17
1 changed files with 3 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue