Jed, as I said yesterday, don't worry about those C99 examples, you don't need to change them.
Barry > On Sep 8, 2015, at 9:12 AM, Jed Brown <[email protected]> wrote: > > This code has been in PETSc for 6 years. Did it just become a problem > or were these warnings suppressed? Is this a useful mode? Changing the > code to initialize with a bunch of statements makes the code longer, > more redundant, and harder to read, so I'm reluctant to change it unless > someone cares. > > PETSc checkBuilds <[email protected]> writes: > >> Dear PETSc developer, >> >> This email contains listings of contributions attributed to you by >> `git blame` that caused compiler errors or warnings in PETSc automated >> testing. Follow the links to see the full log files. Please attempt to fix >> the issues promptly or let us know at [email protected] if you are unable >> to resolve the issues. >> >> Thanks, >> The PETSc development team >> >> ---- >> >> warnings attributed to commit >> https://bitbucket.org/petsc/petsc/commits/252c3e4 >> Add linear acoustics to FV solver >> >> src/ts/examples/tutorials/ex9.c:1071 >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> /sandbox/petsc/petsc.clone-2/src/ts/examples/tutorials/ex9.c:1071:10: >> warning: initializer element is not computable at load time >> >> src/ts/examples/tutorials/ex9.c:1154 >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> /sandbox/petsc/petsc.clone-2/src/ts/examples/tutorials/ex9.c:1154:10: >> warning: initializer element is not computable at load time >> >> src/ts/examples/tutorials/ex9.c:768 >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> /sandbox/petsc/petsc.clone-2/src/ts/examples/tutorials/ex9.c:768:5: >> warning: initializer element is not computable at load time >> >> src/ts/examples/tutorials/ex9.c:769 >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> /sandbox/petsc/petsc.clone-2/src/ts/examples/tutorials/ex9.c:769:17: >> warning: initializer element is not computable at load time >> >> ---- >> >> warnings attributed to commit >> https://bitbucket.org/petsc/petsc/commits/26db4db >> Add prototype multiphysics example with analytic Jacobians >> >> src/snes/examples/tutorials/ex28.c:143 >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> /sandbox/petsc/petsc.clone-2/src/snes/examples/tutorials/ex28.c:143:5: >> warning: initializer element is not computable at load time >> >> ---- >> >> warnings attributed to commit >> https://bitbucket.org/petsc/petsc/commits/28c2760 >> Add example multigrid solver for hydrostatic ice sheet flow >> >> src/snes/examples/tutorials/ex48.c:1236 >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> >> /sandbox/petsc/petsc.clone-2/src/snes/examples/tutorials/ex48.c:1236:15: >> warning: initializer element is not computable at load time >> >> src/snes/examples/tutorials/ex48.c:1237 >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> >> /sandbox/petsc/petsc.clone-2/src/snes/examples/tutorials/ex48.c:1237:46: >> warning: initializer element is not computable at load time >> >> src/snes/examples/tutorials/ex48.c:1238 >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> >> /sandbox/petsc/petsc.clone-2/src/snes/examples/tutorials/ex48.c:1238:46: >> warning: initializer element is not computable at load time >> >> src/snes/examples/tutorials/ex48.c:1239 >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> >> /sandbox/petsc/petsc.clone-2/src/snes/examples/tutorials/ex48.c:1239:46: >> warning: initializer element is not computable at load time >> >> src/snes/examples/tutorials/ex48.c:188 >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> /sandbox/petsc/petsc.clone-2/src/snes/examples/tutorials/ex48.c:188:87: >> warning: ISO C90 does not support 'static' or type qualifiers in parameter >> array declarators [-Wpedantic] >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> >> /sandbox/petsc/petsc.clone-2/src/snes/examples/tutorials/ex48.c:188:148: >> warning: ISO C90 does not support 'static' or type qualifiers in parameter >> array declarators [-Wpedantic] >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> >> /sandbox/petsc/petsc.clone-2/src/snes/examples/tutorials/ex48.c:188:117: >> warning: ISO C90 does not support 'static' or type qualifiers in parameter >> array declarators [-Wpedantic] >> >> src/snes/examples/tutorials/ex48.c:190 >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> /sandbox/petsc/petsc.clone-2/src/snes/examples/tutorials/ex48.c:190:3: >> warning: initializer element is not computable at load time >> >> src/snes/examples/tutorials/ex48.c:191 >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> /sandbox/petsc/petsc.clone-2/src/snes/examples/tutorials/ex48.c:191:3: >> warning: initializer element is not computable at load time >> >> src/snes/examples/tutorials/ex48.c:266 >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> /sandbox/petsc/petsc.clone-2/src/snes/examples/tutorials/ex48.c:266:21: >> warning: initializer element is not computable at load time >> >> ---- >> >> warnings attributed to commit >> https://bitbucket.org/petsc/petsc/commits/3b50ffb >> Flesh out 1-D high-resolution finite volume example >> >> src/ts/examples/tutorials/ex9.c:770 >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> /sandbox/petsc/petsc.clone-2/src/ts/examples/tutorials/ex9.c:770:5: >> warning: initializer element is not computable at load time >> >> src/ts/examples/tutorials/ex9.c:906 >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> /sandbox/petsc/petsc.clone-2/src/ts/examples/tutorials/ex9.c:906:10: >> warning: initializer element is not computable at load time >> >> ---- >> >> warnings attributed to commit >> https://bitbucket.org/petsc/petsc/commits/7570185 >> Fix ex48 for complex, explicitly set the "component" field of MatStencil >> >> src/snes/examples/tutorials/ex48.c:269 >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> /sandbox/petsc/petsc.clone-2/src/snes/examples/tutorials/ex48.c:269:31: >> warning: initializer element is not computable at load time >> >> src/snes/examples/tutorials/ex48.c:270 >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> /sandbox/petsc/petsc.clone-2/src/snes/examples/tutorials/ex48.c:270:31: >> warning: initializer element is not computable at load time >> >> src/snes/examples/tutorials/ex48.c:271 >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> /sandbox/petsc/petsc.clone-2/src/snes/examples/tutorials/ex48.c:271:31: >> warning: initializer element is not computable at load time >> >> ---- >> >> warnings attributed to commit >> https://bitbucket.org/petsc/petsc/commits/7d9bd58 >> snes ex48 updates >> >> src/snes/examples/tutorials/ex48.c:272 >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> /sandbox/petsc/petsc.clone-2/src/snes/examples/tutorials/ex48.c:272:31: >> warning: initializer element is not computable at load time >> >> src/snes/examples/tutorials/ex48.c:273 >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> /sandbox/petsc/petsc.clone-2/src/snes/examples/tutorials/ex48.c:273:31: >> warning: initializer element is not computable at load time >> >> src/snes/examples/tutorials/ex48.c:727 >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> /sandbox/petsc/petsc.clone-2/src/snes/examples/tutorials/ex48.c:727:55: >> warning: ISO C90 does not support 'static' or type qualifiers in parameter >> array declarators [-Wpedantic] >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> >> /sandbox/petsc/petsc.clone-2/src/snes/examples/tutorials/ex48.c:727:216: >> warning: ISO C90 does not support 'static' or type qualifiers in parameter >> array declarators [-Wpedantic] >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> >> /sandbox/petsc/petsc.clone-2/src/snes/examples/tutorials/ex48.c:727:122: >> warning: ISO C90 does not support 'static' or type qualifiers in parameter >> array declarators [-Wpedantic] >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> >> /sandbox/petsc/petsc.clone-2/src/snes/examples/tutorials/ex48.c:727:247: >> warning: ISO C90 does not support 'static' or type qualifiers in parameter >> array declarators [-Wpedantic] >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> /sandbox/petsc/petsc.clone-2/src/snes/examples/tutorials/ex48.c:727:91: >> warning: ISO C90 does not support 'static' or type qualifiers in parameter >> array declarators [-Wpedantic] >> >> src/snes/examples/tutorials/ex48.c:820 >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> /sandbox/petsc/petsc.clone-2/src/snes/examples/tutorials/ex48.c:820:13: >> warning: initializer element is not computable at load time >> >> ---- >> >> warnings attributed to commit >> https://bitbucket.org/petsc/petsc/commits/8213a6b >> snes ex28 (multi-physics assembly): fix scaling, use more interesting and >> stable "physics" >> >> src/snes/examples/tutorials/ex28.c:150 >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> /sandbox/petsc/petsc.clone-2/src/snes/examples/tutorials/ex28.c:150:7: >> warning: initializer element is not computable at load time >> >> src/snes/examples/tutorials/ex28.c:168 >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> /sandbox/petsc/petsc.clone-2/src/snes/examples/tutorials/ex28.c:168:5: >> warning: initializer element is not computable at load time >> >> ---- >> >> warnings attributed to commit >> https://bitbucket.org/petsc/petsc/commits/864d954 >> Make a Brusselator in 1D >> >> src/ts/examples/tutorials/ex25.c:254 >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> /sandbox/petsc/petsc.clone-2/src/ts/examples/tutorials/ex25.c:254:7: >> warning: initializer element is not computable at load time >> >> src/ts/examples/tutorials/ex25.c:257 >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> /sandbox/petsc/petsc.clone-2/src/ts/examples/tutorials/ex25.c:257:7: >> warning: initializer element is not computable at load time >> >> src/ts/examples/tutorials/ex25.c:259 >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> /sandbox/petsc/petsc.clone-2/src/ts/examples/tutorials/ex25.c:259:7: >> warning: initializer element is not computable at load time >> >> src/ts/examples/tutorials/ex25.c:260 >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> /sandbox/petsc/petsc.clone-2/src/ts/examples/tutorials/ex25.c:260:42: >> warning: initializer element is not computable at load time >> >> ---- >> >> warnings attributed to commit >> https://bitbucket.org/petsc/petsc/commits/9406ea4 >> New features in 1D FV example >> >> src/ts/examples/tutorials/ex9.c:771 >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> /sandbox/petsc/petsc.clone-2/src/ts/examples/tutorials/ex9.c:771:17: >> warning: initializer element is not computable at load time >> >> src/ts/examples/tutorials/ex9.c:977 >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> /sandbox/petsc/petsc.clone-2/src/ts/examples/tutorials/ex9.c:977:10: >> warning: initializer element is not computable at load time >> >> ---- >> >> warnings attributed to commit >> https://bitbucket.org/petsc/petsc/commits/afcb2eb >> Make petscimpl.h private >> >> include/petsc/private/petscimpl.h:346 >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/build_next_arch-linux-gcc-absoft_churn.log] >> /sandbox/petsc/petsc.clone/include/petsc/private/petscimpl.h:346:4: >> warning: statement has no effect [-Wunused-value] >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/build_next_arch-linux-gcc-pgf90_grind.log] >> /sandbox/petsc/petsc.clone-2/include/petsc/private/petscimpl.h:346:3: >> warning: statement with no effect [-Wunused-value] >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/build_next_arch-linux-pkgs-valgrind_grind.log] >> /sandbox/petsc/petsc.clone/include/petsc/private/petscimpl.h:346:3: >> warning: statement with no effect [-Wunused-value] >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/build_next_arch-linux-dbg-quad_churn.log] >> /sandbox/petsc/petsc.clone-3/include/petsc/private/petscimpl.h:346:3: >> warning: statement with no effect [-Wunused-value] >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/build_next_arch-linux-pkgs-64idx_thrash.log] >> /sandbox/petsc/petsc.clone-3/include/petsc/private/petscimpl.h:346:3: >> warning: statement with no effect [-Wunused-value] >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/build_next_arch-linux-uni_crush.log] >> /sandbox/petsc/petsc.clone-2/include/petsc/private/petscimpl.h:346:3: >> warning: statement with no effect [-Wunused-value] >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/build_next_arch-linux-pkgs-threadcomm_thrash.log] >> /sandbox/petsc/petsc.clone/include/petsc/private/petscimpl.h:346:3: >> warning: statement with no effect [-Wunused-value] >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/build_next_arch-linux-gcc-ifc-cmplx_crank.log] >> /sandbox/petsc/petsc.clone-2/include/petsc/private/petscimpl.h:346:3: >> warning: statement with no effect [-Wunused-value] >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/build_next_arch-linux-pkgs-opt_crank.log] >> /sandbox/petsc/petsc.clone/include/petsc/private/petscimpl.h:346:3: >> warning: statement with no effect [-Wunused-value] >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/build_next_arch-linux-opt-cxx-quad_cg.log] >> /sandbox/petsc/petsc.clone/include/petsc/private/petscimpl.h:346:4: >> warning: statement has no effect [-Wunused-value] >> >> ---- >> >> warnings attributed to commit >> https://bitbucket.org/petsc/petsc/commits/f1c9992 >> PetscInitialize/TS: test multiple calls in (bad) convergnce study >> >> src/ts/examples/tests/ex25.c:278 >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> /sandbox/petsc/petsc.clone-2/src/ts/examples/tests/ex25.c:278:7: >> warning: initializer element is not computable at load time >> >> src/ts/examples/tests/ex25.c:281 >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> /sandbox/petsc/petsc.clone-2/src/ts/examples/tests/ex25.c:281:7: >> warning: initializer element is not computable at load time >> >> src/ts/examples/tests/ex25.c:283 >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> /sandbox/petsc/petsc.clone-2/src/ts/examples/tests/ex25.c:283:7: >> warning: initializer element is not computable at load time >> >> src/ts/examples/tests/ex25.c:284 >> >> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/09/08/examples_next_arch-linux-c89_thrash.log] >> /sandbox/petsc/petsc.clone-2/src/ts/examples/tests/ex25.c:284:42: >> warning: initializer element is not computable at load time >> >> ---- >> To opt-out from receiving these messages - send a request to >> [email protected].
