From 83b4e981c4dd8b8ea521a6150a34636d10a67211 Mon Sep 17 00:00:00 2001 From: "Michael Hirsch, Ph.D" <10931741+scivision@users.noreply.github.com> Date: Mon, 18 Nov 2019 15:21:37 -0500 Subject: Use strict function prototypes --- .github/workflows/unusedargs_missingreturn.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/workflows/unusedargs_missingreturn.yml b/.github/workflows/unusedargs_missingreturn.yml index 03802dc6b..a75a6d5ec 100644 --- a/.github/workflows/unusedargs_missingreturn.yml +++ b/.github/workflows/unusedargs_missingreturn.yml @@ -1,5 +1,8 @@ name: UnusedMissingReturn -# this workflow checks for usused input arguments or missing return values in test cases. +# this workflow checks for +# * unused input arguments +# * missing return values +# * strict prototypes # some users have default configs that will needlessly fail Meson self-tests due to these syntax. on: @@ -33,6 +36,6 @@ jobs: sudo apt install -yq --no-install-recommends g++ gfortran ninja-build - run: python run_project_tests.py --only cmake common fortran platform-linux env: - CFLAGS: "-Werror=unused-parameter -Werror=return-type" + CFLAGS: "-Werror=unused-parameter -Werror=return-type -Werror=strict-prototypes" CPPFLAGS: "-Werror=unused-parameter -Werror=return-type" FFLAGS: "-fimplicit-none" -- cgit v1.2.3