[go: up one dir, main page]

Menu

Git Merge Request #1: src/schedule.c: fix build with gcc 4.8 (merged)

Merging...

Merged

Something went wrong. Please, merge manually

Checking if merge is possible...

Something went wrong. Please, merge manually

Fabrice Fontaine wants to merge 1 commit from /u/ffontaine35/sispmctl/ to master, 2020-10-29

Fix the following build failure with gcc 4.8:

schedule.c:19:2: error: 'for' loop initial declarations are only allowed in C99 mode
for (int i = 0; i < 4; ++i) {
^
schedule.c:19:2: note: use option -std=c99 or -std=gnu99 to compile your code
schedule.c: In function 'pms2_read_block':
schedule.c:39:2: error: 'for' loop initial declarations are only allowed in C99 mode
for (int i = 0; i < 4; ++i) {
^

Fixes:
- http://autobuild.buildroot.org/results/079f1454121d38a83c49529c0f6cc8ed61fd5abb

Commit Date  
[791a3b] (HEADmaster) by Fabrice Fontaine Fabrice Fontaine

src/schedule.c: fix build with gcc 4.8

Fix the following build failure with gcc 4.8:

schedule.c:19:2: error: 'for' loop initial declarations are only allowed in C99 mode
for (int i = 0; i < 4; ++i) {
^
schedule.c:19:2: note: use option -std=c99 or -std=gnu99 to compile your code
schedule.c: In function 'pms2_read_block':
schedule.c:39:2: error: 'for' loop initial declarations are only allowed in C99 mode
for (int i = 0; i < 4; ++i) {
^

Fixes:
- http://autobuild.buildroot.org/results/079f1454121d38a83c49529c0f6cc8ed61fd5abb

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@...>

2020-10-29 12:36:00 Tree

Discussion

  • xypron

    xypron - 2020-10-29
    • Status: open --> merged
     
  • xypron

    xypron - 2020-10-29

    I merged the patch after adding empty lines after the variable declaration and limiting commit line length to 75 characters.

     

Log in to post a comment.