This warning occurs for libgfortran/io/list_read.c (list_formatted_read_scalar) It can be cleared up using the 'volatile' on the argument 'type' shown here. 'type' is never changed anywhere. static void list_formatted_read_scalar (st_parameter_dt *dtp, volatile bt type, void *p, int kind, size_t size) { char c; int m; jmp_buf eof_jump; dtp->u.p.namelist_mode = 0; dtp->u.p.eof_jump = &eof_jump; if (setjmp (eof_jump)) { generate_error (&dtp->common, ERROR_END, NULL); goto cleanup; } --- snip ---
From the gfortran list: Reviewing my buildlog of gcc trunk on Darwin PPC, I noticed we have the warning... /sw/src/fink.build/gcc4-4.1.9999-20060928/darwin_objdir/./gcc/xgcc -B/sw/src/fink.build/gcc4-4.1.9999-20060928/darwin_objdir/./gcc/ -B/sw/lib/gcc4/powerpc-apple-darwin8/bin/ -B/sw/li b/gcc4/powerpc-apple-darwin8/lib/ -isystem /sw/lib/gcc4/powerpc-apple-darwin8/include -isystem /sw/lib/gcc4/powerpc-apple-darwin8/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc-4.2-2 0060928/libgfortran -I. -iquote../../../gcc-4.2-20060928/libgfortran/io -I../../../gcc-4.2-20060928/libgfortran/../gcc -I../../../gcc-4.2-20060928/libgfortran/../gcc/config -I../../. /gcc -D_GNU_SOURCE -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -O2 -g -O2 -c ../../../gcc-4.2-20060928/libgfortran/io/lis t_read.c -fno-common -DPIC -o .libs/list_read.o ../../../gcc-4.2-20060928/libgfortran/io/list_read.c: In function 'list_formatted_read_scalar': ../../../gcc-4.2-20060928/libgfortran/io/list_read.c:1460: warning: argument 'type' might be clobbered by 'longjmp' or 'vfork'
*** This bug has been marked as a duplicate of 41219 ***