diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2024-08-04 16:37:44 +0100 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2024-08-06 15:17:47 +0100 |
commit | 696cd4ee021bac9ba26b13493d60c5840f50b9bb (patch) | |
tree | bf9bbf564264de124a4657af95492f0849cf63b8 /libgloss/iq2000 | |
parent | 367b69a2803d4c0e4812b786f8f35865969f6636 (diff) | |
download | newlib-696cd4ee021bac9ba26b13493d60c5840f50b9bb.zip newlib-696cd4ee021bac9ba26b13493d60c5840f50b9bb.tar.gz newlib-696cd4ee021bac9ba26b13493d60c5840f50b9bb.tar.bz2 |
Cygwin: Fix warning about address known to be non-NULL in /proc/locales
Fix a gcc 12 warning about an address known to be non-NULL in
format_proc_locale_proc().
> ../../../../src/winsup/cygwin/fhandler/proc.cc: In function ‘BOOL format_proc_locale_proc(LPWSTR, DWORD, LPARAM)’:
> ../../../../src/winsup/cygwin/fhandler/proc.cc:2156:11: error: the address of ‘iso15924’ will never be NULL [-Werror=address]
> 2156 | if (iso15924)
> | ^~~~~~~~
> ../../../../src/winsup/cygwin/fhandler/proc.cc:2133:11: note: ‘iso15924’ declared here
> 2133 | wchar_t iso15924[ENCODING_LEN + 1] = { 0 };
> | ^~~~~~~~
Fixes: c42b98bdc665f ("Cygwin: introduce /proc/codesets and /proc/locales")
Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
Diffstat (limited to 'libgloss/iq2000')
0 files changed, 0 insertions, 0 deletions