C type error (incompatible function pointer) in X11GLContext.c

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • jfx22
    • Affects Version/s: jfx21
    • Component/s: javafx
    • None
    • b25
    • generic
    • linux

      In Java_com_sun_prism_es2_X11GLContext_nInitialize, ctxInfo->glXSwapIntervalSGI is assigned the result of a glXGetProcAddress call, but the pointer types are not necessarily compatible (it's void (*) (void) vs int (*) (int) in our builds).

      This causes a build failure with GCC 14 and presumably Clang.

            Assignee:
            Florian Weimer
            Reporter:
            Florian Weimer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: