Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-2578

Raise minimum C level to ISO C11 with GNU extensions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.2.0
    • Back End C-Generator
    • None

    Description

      Fix pedantic warning "ISO C99 doesn't support unnamed structs/unions" found when compiling nested.dfdl.xsd's NestedUnion example with current Makefile's CFLAGS. Verify that both gcc and clang support "-std=gnu11" all the way back to gcc-4 and clang-3 on CentOS 7. Raise runtime2's minimum C language support level to ISO C11 with GNU extensions and make all the places where Daffodil calls the C compiler pass "-std=gnu11" to the C compiler to compile code with the same minimum C level. ISO C11 also allows "for (" loops to define loop variables in place so we can make that change too.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jinterrante John Interrante
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: