[PATCH 0/1] add value for _h_errno in _REENT_INIT(var) for struct _reent
Johannes Rosa <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <[email protected]> |
Hello newlib mailing-list, The define '_REENT_INIT' for the case '!_REENT_SMALL' was missing an initializing value for 'int _h_errno'. If code uses the _REENT_INIT() macro to preset a variable of type struct _reent, this led to an issue when compiling with -Wmissing-field-initializers. Note: _REENT_INIT() still seems to lack some further initizalizers for struct _reent (state for unicode functions, under #ifdef __CYGWIN__ and some _getlocalename stuff (#ifdef _MB_CAPABLE). Maybe this should also be fixed, but it is not in my focus so I can't test it. Hope the email format is all right, I'm sending patch this way for the first time... Best regards Johannes Rosa (1): add value for _h_errno in _REENT_INIT(var) for struct _reent newlib/libc/include/sys/reent.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.34.1