* Promote some GCC warnings back to errors and deal with build breakage. I tested configuring and building with GCC 8.3.0 with `.../configure --prefix=$HOME/wrk/install/manydsets --enable-build-mode=production --enable-symbols=-gdwarf-4 --enable-warnings-as-errors --enable-java --enable-hl --enable-fortran --enable-cxx --enable-mirror-vfd --enable-ros3-vfd --enable-direct-vfd` and with the same options but `--enable-build-mode=debug`. * Promote -Wrestrict to -Werror=restrict to help catch overlapping arguments to strcpy, memcpy, et cetera, at compile time. * NFCI: sort lines. * Committing clang-format changes * NFCI: remove whitespace at EOL. * Re-use temporary variable `shared`. * Remove merge oopsie. * Mention that no op codes are understood per review comment. * Change this back to the develop branch's way, since this change isn't integral to the PR. * Committing clang-format changes * NFCI: reduce differences with `develop` branch in the hope that that also kicks off CI. Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Dana Robinson <43805+derobins@users.noreply.github.com>
64 lines
2.0 KiB
Plaintext
64 lines
2.0 KiB
Plaintext
#
|
|
# HDF5 code should not trigger the following warnings under any
|
|
# circumstances, so ask the compiler to treat them as errors:
|
|
#
|
|
-Werror=bad-function-cast
|
|
-Werror=cast-align
|
|
-Werror=format
|
|
-Werror=implicit-function-declaration
|
|
-Werror=int-to-pointer-cast
|
|
-Werror=missing-declarations
|
|
-Werror=missing-prototypes
|
|
-Werror=nested-externs
|
|
-Werror=old-style-definition
|
|
-Werror=packed
|
|
-Werror=pointer-sign
|
|
-Werror=pointer-to-int-cast
|
|
-Werror=redundant-decls
|
|
-Werror=strict-prototypes
|
|
-Werror=switch
|
|
-Werror=unused-but-set-variable
|
|
-Werror=unused-variable
|
|
#
|
|
#-Werror=discarded-qualifiers
|
|
#
|
|
#
|
|
# NOTE: File Driver files are not compatible with these warnings as errors
|
|
# H5FDdirect.c,H5FDmpio.c,H5FDros3.c,
|
|
# -Werror=unused-function
|
|
#
|
|
-Wunused-function
|
|
#
|
|
# H5VLpassthru.c
|
|
# -Werror=unused-parameter
|
|
#
|
|
-Wunused-parameter
|
|
#
|
|
#Examples and tests do not use the same set of extensive warning flags as libraries
|
|
# Here is a list of tests and examples that have issues with the stricter warnings as error
|
|
#
|
|
# NOTE: Test files are not compatible with these warnings as errors
|
|
# thread_id.c,
|
|
# -Werror=unused-function
|
|
# dsets.c
|
|
# -Werror=unused-parameter
|
|
# external.c,perform/sio_engine.c
|
|
# -Werror=format(-truncation)
|
|
#
|
|
#
|
|
# NOTE: Examples files are not compatible with these warnings as errors
|
|
# h5_vds-eiger.c,h5_vds-exclim.c,h5_vds.c,h5_vds-exc.c,h5_vds-percival-unlim-maxmin.c
|
|
# h5_vds-percival.c,h5_read.c,h5_rdwt.c,h5_mount.c,h5_extend.c,h5_extend_write.c
|
|
# h5_write.c,h5_vds-simpleIO.c,h5_ref2reg_deprec.c,h5_crtgrp.c,h5_select.c
|
|
# h5_vds-percival-unlim.c,h5_crtatt.c,h5_group.c,h5_attribute.c,h5_crtdat.c
|
|
# h5_reference_deprec.c
|
|
# h5_rdwt.c,h5_crtgrp.c,h5_crtatt.c,h5_crtdat.c
|
|
# -Werror=strict-prototypes
|
|
# h5_rdwt.c,h5_crtgrp.c,h5_crtatt.c,h5_crtdat.c
|
|
# -Werror=old-style-definition
|
|
# h5_vds-exclim.c,h5_vds.c,h5_vds-exc.c,
|
|
# -Werror=unused-variable
|
|
# h5_elink_unix2win.c,h5_extlink.c,h5_attribute.c
|
|
# -Werror=unused-parameter
|
|
|