Skip to content

libopcodes: many warnings about scalar initializers #9

@cooljeanius

Description

@cooljeanius

For example:

fr30-desc.c:131:3: warning: braces around scalar initializer
  131 |   { "r0", 0, {0, {{{0, 0}}}}, 0, 0 },
      |   ^
fr30-desc.c:131:3: note: (near initialization for 'fr30_cgen_opval_gr_names_entries[0].attrs.nonbool[0]')
fr30-desc.c:131:3: warning: braces around scalar initializer
fr30-desc.c:131:3: note: (near initialization for 'fr30_cgen_opval_gr_names_entries[0].attrs.nonbool[0]')
fr30-desc.c:131:24: warning: excess elements in scalar initializer
  131 |   { "r0", 0, {0, {{{0, 0}}}}, 0, 0 },
      |                        ^

I have a gcc bug open to make this warning disableable: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103210
...but even if that's fixed, I should still fix the underlying issue... will probably require learning how cgen and scheme work...

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions