summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2023-03-09 19:20:58 +0100
committerSebastian Rasmussen <sebras@gmail.com>2023-03-09 20:09:27 +0100
commiteb8a7e44279415fdefda6d980b99bd7e00c41da0 (patch)
treeeb807e6704df2b72424ef5d4f56211855c281e38 /src/bin
parent1a8d13e2c51cc59507b361a9c0d1cf51201f7d02 (diff)
CMake: error out on warnings for strict/missing prototypes.
And fix strict-prototypes/missing-prototypes warnings.
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/jp2/opj_compress.c2
-rw-r--r--src/bin/jp2/opj_decompress.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/jp2/opj_compress.c b/src/bin/jp2/opj_compress.c
index 8ba3b6d7..212f144e 100644
--- a/src/bin/jp2/opj_compress.c
+++ b/src/bin/jp2/opj_compress.c
@@ -1883,7 +1883,7 @@ static void info_callback(const char *msg, void *client_data)
fprintf(stdout, "[INFO] %s", msg);
}
-OPJ_FLOAT64 opj_clock(void)
+static OPJ_FLOAT64 opj_clock(void)
{
#ifdef _WIN32
/* _WIN32: use QueryPerformance (very accurate) */
diff --git a/src/bin/jp2/opj_decompress.c b/src/bin/jp2/opj_decompress.c
index c32cc3dc..ba26bfbb 100644
--- a/src/bin/jp2/opj_decompress.c
+++ b/src/bin/jp2/opj_decompress.c
@@ -988,7 +988,7 @@ int parse_DA_values(char* inArg, unsigned int *DA_x0, unsigned int *DA_y0,
}
}
-OPJ_FLOAT64 opj_clock(void)
+static OPJ_FLOAT64 opj_clock(void)
{
#ifdef _WIN32
/* _WIN32: use QueryPerformance (very accurate) */