Skip to content

Commit

Permalink
Never change configure manually
Browse files Browse the repository at this point in the history
Configure should be changed by editing configure.in and rerunning
autoconf. Also, since configure is always auto-generated and, as it
turns out, autoconf adds some spurious empty lines at the end - thus we
should exclude this file from the end-of-file pre-commit hook.
  • Loading branch information
stephankramer committed Oct 21, 2022
1 parent b39890c commit 08814c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ repos:
- id: debug-statements
- id: destroyed-symlinks
- id: end-of-file-fixer
exclude: configure
- id: mixed-line-ending
exclude: ref_vtk_hexahedra.vtu
- id: trailing-whitespace
Expand Down
2 changes: 2 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -18071,3 +18071,5 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi
2 changes: 1 addition & 1 deletion configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ EOF
FCFLAGS="$old_fcflags"

FFLAGS="-fbounds-check -Wall ${FFLAGS}"
FCFLAGS="-fbounds-check -Wall -Wimplicit-interface -Wno-surprising ${FCFLAGS}"
FCFLAGS="-fbounds-check -Wall -Wno-surprising -Wno-unused-function -Wno-unused-dummy-argument ${FCFLAGS}"
CFLAGS="-fbounds-check -Wall ${CFLAGS}"
CXXFLAGS="-fbounds-check -Wall ${CXXFLAGS}"
if test "$DARWIN" = "no" ; then
Expand Down

0 comments on commit 08814c8

Please sign in to comment.