Fix strftime build with GCC 8

Paul Eggert eggert@cs.ucla.edu
Wed Jun 28 22:56:00 GMT 2017


Rafal Luzynski wrote:
> wouldn't a simple compound expression do the work?

It's better to use do-while in case the macro is used as a then-part of an 
if-statement, where a simple compound expression would cause a syntax error. 
FWIW, the Gnulib copy of strftime has been using do-while for some time.



More information about the Libc-alpha mailing list