netcdf-c/libsrc
Egbert Eich 269ff33844 swap[4|8]b: Satisfy strict aliasing rules
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>
2021-08-04 07:31:56 +02:00
..
attr.m4
CMakeLists.txt Ensure MPI header found without wrapper 2021-01-19 09:38:07 -07:00
depend
dim.c
ffio.c
httpio.c Move to Version 2 NCZarr Extended Meta-Data 2021-07-17 16:55:30 -06:00
lookup3.c
Makefile.am Master merge, conflict resolution, cleanup 2019-02-24 16:54:13 -07:00
memio.c Prepare for the path management code 2020-10-13 19:12:15 -06:00
mmapio.c Prepare for the path management code 2020-10-13 19:12:15 -06:00
nc3dispatch.c Mostly revert the filter code to reduce its complexity of use. 2020-09-27 12:43:46 -06:00
nc3internal.c windows: detect Windows using the correct define name 2019-11-07 07:55:47 -05:00
ncFile.c Codify cross-platform file paths 2021-03-04 13:41:31 -07:00
ncio.c Master merge, conflict resolution, cleanup 2019-02-24 16:54:13 -07:00
ncio.h
ncstdio.c
ncstdio.h
ncx_cray.c
ncx.h
ncx.m4 swap[4|8]b: Satisfy strict aliasing rules 2021-08-04 07:31:56 +02:00
posixio.c Codify cross-platform file paths 2021-03-04 13:41:31 -07:00
pstdint.h windows: detect Windows using the correct define name 2019-11-07 07:55:47 -05:00
putget.m4 Yet another fix for DAP2 double URL encoding. 2020-11-05 11:04:56 -07:00
t_ncio.c
t_ncio.in
t_ncxx.m4
test_nc.sav
v1hpg.c
var.c
winceio.c Codify cross-platform file paths 2021-03-04 13:41:31 -07:00
XGetopt.c Fix undefined references when using Visual Studio 2020-05-18 19:36:28 -06:00