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]
(HEAD, master)
by
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 Fixes: Signed-off-by: Fabrice Fontaine <fontaine.fabrice@...> |
2020-10-29 12:36:00 | Tree |
I merged the patch after adding empty lines after the variable declaration and limiting commit line length to 75 characters.