From d48e2355a38d9ea744f22f9c67c2002216d96f44 Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Mon, 24 Oct 2011 18:35:36 +0700 Subject: [PATCH] syntax-check: fix violations and re-enable sc_prohibit_have_config_h. * cfg.mk (local-checks-to-fix): Remove sc_prohibit_have_config_h from list of disabled checks. * tests/f77demo/foo.h, tests/fcdemo/foo.h: Remove spurious HAVE_CONFIG_H guards for #include . Signed-off-by: Gary V. Vaughan --- cfg.mk | 1 - tests/f77demo/foo.h | 2 -- tests/fcdemo/foo.h | 2 -- 3 files changed, 5 deletions(-) diff --git a/cfg.mk b/cfg.mk index bd0b4ad82..8f9955698 100644 --- a/cfg.mk +++ b/cfg.mk @@ -40,7 +40,6 @@ VC_LIST_ALWAYS_EXCLUDE_REGEX = ^mail/ local-checks-to-fix = \ sc_prohibit_always-defined_macros \ sc_prohibit_always_true_header_tests \ - sc_prohibit_have_config_h \ sc_prohibit_magic_number_exit \ sc_prohibit_stddef_without_use \ sc_prohibit_strcmp \ diff --git a/tests/f77demo/foo.h b/tests/f77demo/foo.h index 35d32f94b..88934fc64 100644 --- a/tests/f77demo/foo.h +++ b/tests/f77demo/foo.h @@ -26,9 +26,7 @@ or obtained by writing to the Free Software Foundation, Inc., #define _FOO_H_ 1 /* config.h is necessary for the fortran name mangling */ -#ifdef HAVE_CONFIG_H #include -#endif /* csub is an extremely useful subroutine that * returns the argument multiplied by two :-) diff --git a/tests/fcdemo/foo.h b/tests/fcdemo/foo.h index cf91d5ada..09f0dce58 100644 --- a/tests/fcdemo/foo.h +++ b/tests/fcdemo/foo.h @@ -26,9 +26,7 @@ or obtained by writing to the Free Software Foundation, Inc., #define _FOO_H_ 1 /* config.h is necessary for the fortran name mangling */ -#ifdef HAVE_CONFIG_H #include -#endif /* csub is an extremely useful subroutine that * returns the argument multiplied by two :-) -- 2.47.2