kakwa / uts-server

Micro RFC 3161 Time-Stamp server written in C.
http://uts-server.readthedocs.org/en/latest/
MIT License
75 stars 21 forks source link

C99 mode error #1

Closed bqwzhl20 closed 7 years ago

bqwzhl20 commented 7 years ago

/root/uts-server-master/src/lib/rfc3161.c: In function ‘get_ctxw’: /root/uts-server-master/src/lib/rfc3161.c:73: error: ‘for’ loop initial declarations are only allowed in C99 mode /root/uts-server-master/src/lib/rfc3161.c:73: note: use option -std=c99 or -std=gnu99 to compile your code make[2]: * [CMakeFiles/uts-server.dir/src/lib/rfc3161.c.o] Error 1 make[1]: * [CMakeFiles/uts-server.dir/all] Error 2 make: *\ [all] Error 2

kakwa commented 7 years ago

Thank you for reporting this bug

Commit: https://github.com/kakwa/uts-server/commit/b98d15b5d61d89d508f50f0889995556ee349591 should fix the issue.

Could you confirm it?

bqwzhl20 commented 7 years ago

yes, it's ok now, thx.