Compilation fails on multiVis.c using gcc4.4.6

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 8u222
    • Component/s: infrastructure
    • None
    • x86
    • linux

      An atttempt to compile jdk/src/solaris/native/sun/awt/multiVis.c with gcc4.4.6 fails with
      ```
      405:error: 'for' loop initial declarations are only allowed in C99 mode
      405:note: use option -std=c99 to -std=gnu99 to compile your code
      ```
      gcc4.4.6 is currently the default on Amazon Linux.

      The simplest solution seems to be to add -std=c99 to CCXXFLAGS_JDK for gcc.

            Assignee:
            Paul Hohensee
            Reporter:
            Paul Hohensee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: