On Tue, 13 Sep 2016, Satish Balay wrote: > On Tue, 13 Sep 2016, Satish Balay wrote: > > > And this one is perhaps for Matt.. > > Ops - perhaps Jed needs to look at this.. > > > > >>>>>>>>>>>>>>>>>>> > > CC arch-clang-cmplx/obj/src/dm/impls/composite/pack.o > > /home/balay/petsc/src/dm/impls/composite/pack.c:657:17: warning: passing an > > object that undergoes default argument promotion to 'va_start' has > > undefined behavior [-Wvarargs] > > va_start(Argp,imode); > > ^ > > /home/balay/petsc/src/dm/impls/composite/pack.c:641:61: note: parameter of > > type 'InsertMode' is declared here > > PetscErrorCode DMCompositeGather(DM dm,Vec gvec,InsertMode imode,...) > > ^ > > 1 warning generated. > > <<<<<<<<<<<<<<<<<
The fix here is: -PetscErrorCode DMCompositeGather(DM dm,Vec gvec,InsertMode imode,...) +PetscErrorCode DMCompositeGather(DM dm,InsertMode imode,Vec gvec,...) [Barry is ok - but Jed,Matt might object?] And I pushed a fix for the -Wexpansion-to-defined issue below.. Satish > > And also: > > > balay@asterix /home/balay/petsc/src/snes/examples/tutorials > (balay/clang-Wcomma=) > $ make ex48 > /home/balay/petsc/arch-clang-cmplx/bin/mpicc -o ex48.o -c -Wall > -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -Qunused-arguments > -Wcomma -g3 -I/home/balay/petsc/include > -I/home/balay/petsc/arch-clang-cmplx/include `pwd`/ex48.c > /home/balay/petsc/src/snes/examples/tutorials/ex48.c:1118:5: warning: macro > expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] > #if USE_SSE2_KERNELS > ^ > /home/balay/petsc/src/snes/examples/tutorials/ex48.c:78:28: note: expanded > from macro 'USE_SSE2_KERNELS' > #define USE_SSE2_KERNELS (!defined NO_SSE2 \ > ^ > /home/balay/petsc/src/snes/examples/tutorials/ex48.c:1118:5: warning: macro > expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] > /home/balay/petsc/src/snes/examples/tutorials/ex48.c:79:31: note: expanded > from macro 'USE_SSE2_KERNELS' > && !defined PETSC_USE_COMPLEX \ > ^ > /home/balay/petsc/src/snes/examples/tutorials/ex48.c:1118:5: warning: macro > expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] > /home/balay/petsc/src/snes/examples/tutorials/ex48.c:80:31: note: expanded > from macro 'USE_SSE2_KERNELS' > && !defined PETSC_USE_REAL_SINGLE \ > ^ > /home/balay/petsc/src/snes/examples/tutorials/ex48.c:1118:5: warning: macro > expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] > /home/balay/petsc/src/snes/examples/tutorials/ex48.c:81:31: note: expanded > from macro 'USE_SSE2_KERNELS' > && !defined PETSC_USE_REAL___FLOAT128 \ > ^ > /home/balay/petsc/src/snes/examples/tutorials/ex48.c:1118:5: warning: macro > expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] > /home/balay/petsc/src/snes/examples/tutorials/ex48.c:82:30: note: expanded > from macro 'USE_SSE2_KERNELS' > && defined __SSE2__) > ^ > /home/balay/petsc/src/snes/examples/tutorials/ex48.c:1143:6: warning: macro > expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] > #if !USE_SSE2_KERNELS > ^ > /home/balay/petsc/src/snes/examples/tutorials/ex48.c:78:28: note: expanded > from macro 'USE_SSE2_KERNELS' > #define USE_SSE2_KERNELS (!defined NO_SSE2 \ > ^ > /home/balay/petsc/src/snes/examples/tutorials/ex48.c:1143:6: warning: macro > expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] > /home/balay/petsc/src/snes/examples/tutorials/ex48.c:79:31: note: expanded > from macro 'USE_SSE2_KERNELS' > && !defined PETSC_USE_COMPLEX \ > ^ > /home/balay/petsc/src/snes/examples/tutorials/ex48.c:1143:6: warning: macro > expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] > /home/balay/petsc/src/snes/examples/tutorials/ex48.c:80:31: note: expanded > from macro 'USE_SSE2_KERNELS' > && !defined PETSC_USE_REAL_SINGLE \ > ^ > /home/balay/petsc/src/snes/examples/tutorials/ex48.c:1143:6: warning: macro > expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] > /home/balay/petsc/src/snes/examples/tutorials/ex48.c:81:31: note: expanded > from macro 'USE_SSE2_KERNELS' > && !defined PETSC_USE_REAL___FLOAT128 \ > ^ > /home/balay/petsc/src/snes/examples/tutorials/ex48.c:1143:6: warning: macro > expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] > /home/balay/petsc/src/snes/examples/tutorials/ex48.c:82:30: note: expanded > from macro 'USE_SSE2_KERNELS' > && defined __SSE2__) > ^ > 10 warnings generated. > /home/balay/petsc/arch-clang-cmplx/bin/mpicc -Wall -Wwrite-strings > -Wno-strict-aliasing -Wno-unknown-pragmas -Qunused-arguments -Wcomma -g3 > -o ex48 ex48.o -Wl,-rpath,/home/balay/petsc/arch-clang-cmplx/lib > -L/home/balay/petsc/arch-clang-cmplx/lib -lpetsc -llapack -lblas -lX11 > -lpthread -lm -Wl,-rpath,/home/balay/petsc/arch-clang-cmplx/lib > -Wl,-rpath,/usr/lib/gcc/x86_64-redhat-linux/6.2.1 > -L/usr/lib/gcc/x86_64-redhat-linux/6.2.1 > -Wl,-rpath,/home/balay/soft/clang+llvm-3.9.0-x86_64-fedora23/lib > -L/home/balay/soft/clang+llvm-3.9.0-x86_64-fedora23/lib -lmpifort -lgfortran > -lm -lgfortran -lm -lquadmath -lm -lmpicxx -lstdc++ > -Wl,-rpath,/home/balay/petsc/arch-clang-cmplx/lib > -L/home/balay/petsc/arch-clang-cmplx/lib > -Wl,-rpath,/usr/lib/gcc/x86_64-redhat-linux/6.2.1 > -L/usr/lib/gcc/x86_64-redhat-linux/6.2.1 > -Wl,-rpath,/home/balay/soft/clang+llvm-3.9.0-x86_64-fedora23/lib > -L/home/balay/soft/clang+llvm-3.9.0-x86_64-fedora23/lib -ldl > -Wl,-rpath,/home/balay/petsc/arch-clang-cmplx/lib -lmpi -lgcc_s -ldl > /usr/bin/rm -f ex48.o > balay@asterix /home/balay/petsc/src/snes/examples/tutorials > (balay/clang-Wcomma=) > $ > > Satish
