This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix strftime build with GCC 8


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]