From 771680ac17a24b32694c34116fddc7f245ba1294 Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Fri, 9 Feb 2024 15:15:44 +0100 Subject: [PATCH] very nice and calm comment about casting void* to function pointers --- modfetch.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modfetch.c b/modfetch.c index 8d7f2ad..68b0da9 100644 --- a/modfetch.c +++ b/modfetch.c @@ -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");