diff options
author | Kelvin M. Klann <kmk3.code@protonmail.com> | 2022-03-09 02:59:03 -0300 |
---|---|---|
committer | Kelvin M. Klann <kmk3.code@protonmail.com> | 2022-03-09 17:31:23 -0300 |
commit | a265fb0bb6be3d18857ef8dec665e7e2a832f2c9 (patch) | |
tree | f3028044a42e8dc73f1cda1bbc3b2a99d147a270 /src/include/gcov_wrapper.h | |
parent | RELNOTES: add warning about allow-tray (diff) | |
download | firejail-a265fb0bb6be3d18857ef8dec665e7e2a832f2c9.tar.gz firejail-a265fb0bb6be3d18857ef8dec665e7e2a832f2c9.tar.zst firejail-a265fb0bb6be3d18857ef8dec665e7e2a832f2c9.zip |
gcov: fix gcov functions always declared as dummy
Currently, the check to enable gcov relies on a non-existent macro due
to a typo, which looks like it would cause the dummy/empty versions of
the gcov functions to always be declared (even with --enable-gcov),
instead of the real ones from gcov.h. This commit fixes the typo
(HAS_GCOV -> HAVE_GCOV). See configure.ac for the macro declaration.
This amends commit 5106b2ec4 ("gcov: use no-op functions if not
enabled", 2021-06-20) / PR #4376.
Occurrences of each macro with this commit applied:
$ git grep -F HAVE_GCOV | wc -l
16
$ git grep -F HAS_GCOV | wc -l
0
Diffstat (limited to 'src/include/gcov_wrapper.h')
-rw-r--r-- | src/include/gcov_wrapper.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/gcov_wrapper.h b/src/include/gcov_wrapper.h index 144181ca0..f714a9b20 100644 --- a/src/include/gcov_wrapper.h +++ b/src/include/gcov_wrapper.h | |||
@@ -21,7 +21,7 @@ | |||
21 | #ifndef GCOV_WRAPPER_H | 21 | #ifndef GCOV_WRAPPER_H |
22 | #define GCOV_WRAPPER_H | 22 | #define GCOV_WRAPPER_H |
23 | 23 | ||
24 | #ifdef HAS_GCOV | 24 | #ifdef HAVE_GCOV |
25 | #include <gcov.h> | 25 | #include <gcov.h> |
26 | 26 | ||
27 | /* | 27 | /* |
@@ -41,6 +41,6 @@ static void __gcov_flush(void) { | |||
41 | #define __gcov_dump() ((void)0) | 41 | #define __gcov_dump() ((void)0) |
42 | #define __gcov_reset() ((void)0) | 42 | #define __gcov_reset() ((void)0) |
43 | #define __gcov_flush() ((void)0) | 43 | #define __gcov_flush() ((void)0) |
44 | #endif /* HAS_GCOV */ | 44 | #endif /* HAVE_GCOV */ |
45 | 45 | ||
46 | #endif /* GCOV_WRAPPER_H */ | 46 | #endif /* GCOV_WRAPPER_H */ |