From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani
On 05/19/2017 02:31 AM, Philipp Stephani wrote:
> Apparently on some systems mbstate_t is a nested struct, and the compi= ler
> warns about missing braces. Note that memset to initialize a mbstate_t= is
> explicitly recommended in the libc manual:
Yes, of course memset works (which is all that the glibc manual really says= ).
It's just that it's verbose and the verbosity isn't needed.
I guess the problem here is that clang's -Wmissing-braces option genera= tes false
alarms. The Clang folks may fix that someday. In the meantime I installed t= he
first attached patch, to turn off that option for Clang.