#207 Trunk timer.c fails to build (C99 code used in C89 mode)

None
closed-fixed
nobody
None
5
2014-12-02
2014-01-19
Bruce Merry
No

At revision 1638, progs/demos/timer/timer.c declares loop variables inside the for loop. This is a C99 feature, but GCC is not given -std=c99 so it fails. I compiled by running cmake . then make on Ubuntu 13.10.

I've attached a patch.

1 Attachments

Discussion

  • Thanks! I just saw others have made similar changes in trunk already, luckily

     
    • status: open --> closed-fixed
    • Group: -->
     
  • It looks like this is fixed now, closing.