Hi
I have the following warnings and error when i run make check-code coverage on Ubuntu 24.04
cat /etc/release gives
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble
DISTRIB_DESCRIPTION="Ubuntu 24.04.1 LTS"
gcov version :
gcov (Ubuntu 13.2.0-23ubuntu4) 13.2.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
lcov version :
lcov: LCOV version 2.0-1
Errors :
geninfo: WARNING: /home/dhr/GnuCobInstall/gnucobol-3.x/cobc/reserved.c:3964: unexecuted block on non-branch line with non-zero hit count. Use "geninfo --rc geninfo_unexecuted_blocks=1 to set count to zero.
Processing ./cobc/field.gcda
geninfo: WARNING: /home/dhr/GnuCobInstall/gnucobol-3.x/cobc/field.c:1035: unexecuted block on non-branch line with non-zero hit count. Use "geninfo --rc geninfo_unexecuted_blocks=1 to set count to zero.
(use "geninfo --ignore-errors gcov,gcov ..." to suppress this warning)
Processing ./cobc/typeck.gcda
geninfo: WARNING: /home/dhr/GnuCobInstall/gnucobol-3.x/cobc/typeck.c:1047: unexecuted block on non-branch line with non-zero hit count. Use "geninfo --rc geninfo_unexecuted_blocks=1 to set count to zero.
(use "geninfo --ignore-errors gcov,gcov ..." to suppress this warning)
Processing ./cobc/parser.gcda
geninfo: WARNING: /home/dhr/GnuCobInstall/gnucobol-3.x/cobc/parser.y:382: unexecuted block on non-branch line with non-zero hit count. Use "geninfo --rc geninfo_unexecuted_blocks=1 to set count to zero.
(use "geninfo --ignore-errors gcov,gcov ..." to suppress this warning)
Processing ./cobc/codeoptim.gcda
Processing ./cobc/error.gcda
Processing ./cobc/cobc.gcda
geninfo: WARNING: /home/dhr/GnuCobInstall/gnucobol-3.x/cobc/cobc.c:4229: unexecuted block on non-branch line with non-zero hit count. Use "geninfo --rc geninfo_unexecuted_blocks=1 to set count to zero.
(use "geninfo --ignore-errors gcov,gcov ..." to suppress this warning)
Processing ./cobc/pplex.gcda
geninfo: WARNING: /home/dhr/GnuCobInstall/gnucobol-3.x/cobc/pplex.l:495: unexecuted block on non-branch line with non-zero hit count. Use "geninfo --rc geninfo_unexecuted_blocks=1 to set count to zero.
(use "geninfo --ignore-errors gcov,gcov ..." to suppress this warning)
Processing ./cobc/tree.gcda
geninfo: WARNING: /home/dhr/GnuCobInstall/gnucobol-3.x/cobc/tree.c:603: unexecuted block on non-branch line with non-zero hit count. Use "geninfo --rc geninfo_unexecuted_blocks=1 to set count to zero.
(use "geninfo --ignore-errors gcov,gcov ..." to suppress this warning)
Processing ./cobc/scanner.gcda
geninfo: WARNING: /home/dhr/GnuCobInstall/gnucobol-3.x/cobc/scanner.l:655: unexecuted block on non-branch line with non-zero hit count. Use "geninfo --rc geninfo_unexecuted_blocks=1 to set count to zero.
(use "geninfo --ignore-errors gcov,gcov ..." to suppress this warning)
Processing ./cobc/codegen.gcda
geninfo: WARNING: /home/dhr/GnuCobInstall/gnucobol-3.x/cobc/codegen.c:4238: unexecuted block on non-branch line with non-zero hit count. Use "geninfo --rc geninfo_unexecuted_blocks=1 to set count to zero.
(use "geninfo --ignore-errors gcov,gcov ..." to suppress this warning)
Processing ./cobc/config.gcda
Processing ./cobc/replace.gcda
Processing ./cobc/help.gcda
Processing ./libcob/.libs/call.gcda
Processing ./libcob/.libs/fileio.gcda
Processing ./libcob/.libs/common.gcda
geninfo: WARNING: /home/dhr/GnuCobInstall/gnucobol-3.x/libcob/common.c:1042: unexecuted block on non-branch line with non-zero hit count. Use "geninfo --rc geninfo_unexecuted_blocks=1 to set count to zero.
(use "geninfo --ignore-errors gcov,gcov ..." to suppress this warning)
Processing ./libcob/.libs/profiling.gcda
Processing ./libcob/.libs/screenio.gcda
geninfo: WARNING: /home/dhr/GnuCobInstall/gnucobol-3.x/libcob/screenio.c:217: unexecuted block on non-branch line with non-zero hit count. Use "geninfo --rc geninfo_unexecuted_blocks=1 to set count to zero.
(use "geninfo --ignore-errors gcov,gcov ..." to suppress this warning)
Processing ./libcob/.libs/cobgetopt.gcda
Processing ./libcob/.libs/strings.gcda
geninfo: WARNING: /home/dhr/GnuCobInstall/gnucobol-3.x/libcob/strings.c:216: unexecuted block on non-branch line with non-zero hit count. Use "geninfo --rc geninfo_unexecuted_blocks=1 to set count to zero.
(use "geninfo --ignore-errors gcov,gcov ..." to suppress this warning)
Processing ./libcob/.libs/reportio.gcda
Processing ./libcob/.libs/mlio.gcda
geninfo: WARNING: /home/dhr/GnuCobInstall/gnucobol-3.x/libcob/mlio.c:142: unexecuted block on non-branch line with non-zero hit count. Use "geninfo --rc geninfo_unexecuted_blocks=1 to set count to zero.
(use "geninfo --ignore-errors gcov,gcov ..." to suppress this warning)
Processing ./libcob/.libs/termio.gcda
geninfo: WARNING: /home/dhr/GnuCobInstall/gnucobol-3.x/libcob/termio.c:1037: unexecuted block on non-branch line with non-zero hit count. Use "geninfo --rc geninfo_unexecuted_blocks=1 to set count to zero.
(use "geninfo --ignore-errors gcov,gcov ..." to suppress this warning)
Processing ./libcob/.libs/numeric.gcda
geninfo: WARNING: /home/dhr/GnuCobInstall/gnucobol-3.x/libcob/numeric.c:469: unexecuted block on non-branch line with non-zero hit count. Use "geninfo --rc geninfo_unexecuted_blocks=1 to set count to zero.
(use "geninfo --ignore-errors gcov,gcov ..." to suppress this warning)
Processing ./libcob/.libs/move.gcda
geninfo: WARNING: /home/dhr/GnuCobInstall/gnucobol-3.x/libcob/coblocal.h:591: unexecuted block on non-branch line with non-zero hit count. Use "geninfo --rc geninfo_unexecuted_blocks=1 to set count to zero.
(use "geninfo --ignore-errors gcov,gcov ..." to suppress this warning)
Processing ./libcob/.libs/cconv.gcda
Processing ./libcob/.libs/intrinsic.gcda
geninfo: WARNING: /home/dhr/GnuCobInstall/gnucobol-3.x/libcob/intrinsic.c:2627: unexecuted block on non-branch line with non-zero hit count. Use "geninfo --rc geninfo_unexecuted_blocks=1 to set count to zero.
(use "geninfo --ignore-errors gcov,gcov ..." to suppress this warning)
Finished .info-file creation
lcov --directory . --remove "GnuCOBOL-3.3-dev-coverage.info.tmp" "/tmp/*" "*/cobc/pplex.c" "*/cobc/ppparse.c" "*/cobc/scanner.c" "*/cobc/parser.c" "*/cobc/config.def" "*/cobc/warning.def" "*/libcob/statement.def" --output-file "GnuCOBOL-3.3-dev-coverage.info" --rc lcov_branch_coverage=1
lcov: WARNING: RC option 'lcov_branch_coverage' is deprecated. Consider using 'branch_coverage. instead. (Backward-compatible support will be removed in the future
Excluding /home/dhr/GnuCobInstall/gnucobol-3.x/cobc/config.def
Excluding /home/dhr/GnuCobInstall/gnucobol-3.x/cobc/parser.c
Excluding /home/dhr/GnuCobInstall/gnucobol-3.x/cobc/pplex.c
Excluding /home/dhr/GnuCobInstall/gnucobol-3.x/cobc/ppparse.c
Excluding /home/dhr/GnuCobInstall/gnucobol-3.x/cobc/scanner.c
Excluding /home/dhr/GnuCobInstall/gnucobol-3.x/cobc/warning.def
Excluding /home/dhr/GnuCobInstall/gnucobol-3.x/libcob/statement.def
Removed 7 files
Writing data to GnuCOBOL-3.3-dev-coverage.info
Summary coverage rate:
lines......: 76.2% (46150 of 60528 lines)
functions..: 90.1% (2195 of 2435 functions)
branches...: 67.5% (26268 of 38941 branches)
lcov: ERROR: 'exclude' pattern '/tmp/*' is unused.
(use "lcov --ignore-errors unused ..." to bypass this error)
make[1]: *** [Makefile:1159: code-coverage-capture] Error 25
make[1]: Leaving directory '/home/dhr/GnuCobInstall/gnucobol-3.x'
make: *** [Makefile:1154: check-code-coverage] Error 2