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

open
nobody
None
5
2014-08-14
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