mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-12 15:45:21 +08:00
269ff33844
gcc11 made assumptions about optimization based on strict aliasing rules that led to this code malfunction, which was caught by the test suite. gcc printed out a warning whose meaning was not immediately obvious: ncx.c: In function 'ncx_putn_float_schar': ncx.c:272:20: warning: 'xx' may be used uninitialized [-Wmaybe-uninitialized] 272 | uint32_t tmp = *(uint32_t*)src; | ^~~~~~~~~~~~~~~ ncx.c:3512:14: note: 'xx' was declared here 3512 | ix_float xx = NC_FILL_FLOAT; | ^~ Due to optimization and inlining, the initialization of this variable was lost. Signed-off-by: Egbert Eich <eich@suse.com> |
||
---|---|---|
.. | ||
attr.m4 | ||
CMakeLists.txt | ||
depend | ||
dim.c | ||
ffio.c | ||
httpio.c | ||
lookup3.c | ||
Makefile.am | ||
memio.c | ||
mmapio.c | ||
nc3dispatch.c | ||
nc3internal.c | ||
ncFile.c | ||
ncio.c | ||
ncio.h | ||
ncstdio.c | ||
ncstdio.h | ||
ncx_cray.c | ||
ncx.h | ||
ncx.m4 | ||
posixio.c | ||
pstdint.h | ||
putget.m4 | ||
t_ncio.c | ||
t_ncio.in | ||
t_ncxx.m4 | ||
test_nc.sav | ||
v1hpg.c | ||
var.c | ||
winceio.c | ||
XGetopt.c |