Skip to content
This repository was archived by the owner on Nov 2, 2023. It is now read-only.
This repository was archived by the owner on Nov 2, 2023. It is now read-only.

quirc.c:51:5: error: ‘for’ loop initial declarations are only allowed in C99 mode #2

@bbozo

Description

@bbozo

I'd be happy to try and fix this myself - I just need a pointer where to plug this in :-)

current directory: /opt/InfoSwitch/Gateway/vendor/bundle/ruby/2.6.0/gems/quirc-0.1.1/ext/quirc
make "DESTDIR="
compiling quirc.c
quirc.c: In function ‘decoder_m_decode’:
quirc.c:51:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
     for (int i = 0; i < num_codes; i++) {
     ^
quirc.c:51:5: note: use option -std=c99 or -std=gnu99 to compile your code
quirc.c: At top level:
cc1: warning: unrecognized command line option "-Wno-tautological-compare" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-self-assign" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-parentheses-equality" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-constant-logical-operand" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-cast-function-type" [enabled by default]
make: *** [quirc.o] Error 1

make failed, exit code 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions