If libcheck is missing, the unit tests are skipped. Header include path
changes mean clamav.h is not available when the unit tests are skipped,
and thus the check_clamav_skip.c files won't compile. This patch
removes the clamav.h dependency so `make check` will "work".
... | ... |
@@ -1,12 +1,9 @@ |
1 | 1 |
#include <stdio.h> |
2 | 2 |
|
3 |
-// libclamav |
|
4 |
-#include "clamav.h" |
|
5 |
- |
|
6 | 3 |
int main(int argc, char **argv) |
7 | 4 |
{ |
8 |
- UNUSEDPARAM(argc); |
|
9 |
- UNUSEDPARAM(argv); |
|
5 |
+ (void)argc; |
|
6 |
+ (void)argv; |
|
10 | 7 |
puts("\n*** Unit tests disabled in this build\n*** Use ./configure --enable-check to enable them\n"); |
11 | 8 |
/* tell automake the test was skipped */ |
12 | 9 |
return 77; |