fix warnings - geomyidae-tests - geomyidae tests | |
git clone git://bitreich.org/geomyidae-tests/ git://enlrupgkhuxnvlhsf6lc3fziv5h… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
LICENSE | |
--- | |
commit ae4e0ab63e7fb0ef6b694b952f582e96510382e9 | |
parent 95da8c518614938d7519048609b8d5c1a5298f23 | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Fri, 21 Jul 2023 14:26:23 +0200 | |
fix warnings | |
Diffstat: | |
M Makefile | 2 +- | |
M test.c | 3 +-- | |
2 files changed, 2 insertions(+), 3 deletions(-) | |
--- | |
diff --git a/Makefile b/Makefile | |
@@ -1,5 +1,5 @@ | |
build: clean | |
- ${CC} -o test.cgi test.c -static | |
+ ${CC} -o test.cgi test.c -static -Wall | |
setup: | |
mkdir -p results | |
diff --git a/test.c b/test.c | |
@@ -34,7 +34,6 @@ write_test_counter(long counter) | |
{ | |
FILE *fp; | |
char buf[32]; | |
- size_t n; | |
int ret; | |
fp = fopen(counter_path, "wb+"); | |
@@ -75,7 +74,7 @@ main(void) | |
counter = get_test_counter(); | |
- snprintf(path, sizeof(path), "results/%lld.txt", counter); | |
+ snprintf(path, sizeof(path), "results/%ld.txt", counter); | |
fp = fopen(path, "wb+"); | |
if (!fp) { | |
fprintf(stderr, "error writing result to path: %s: %s\n", |