diff options
| author | Sebastian Rasmussen <sebras@gmail.com> | 2023-03-09 19:20:58 +0100 |
|---|---|---|
| committer | Sebastian Rasmussen <sebras@gmail.com> | 2023-03-09 20:09:27 +0100 |
| commit | eb8a7e44279415fdefda6d980b99bd7e00c41da0 (patch) | |
| tree | eb807e6704df2b72424ef5d4f56211855c281e38 /src/lib/openjp2/openjpeg.c | |
| parent | 1a8d13e2c51cc59507b361a9c0d1cf51201f7d02 (diff) | |
CMake: error out on warnings for strict/missing prototypes.
And fix strict-prototypes/missing-prototypes warnings.
Diffstat (limited to 'src/lib/openjp2/openjpeg.c')
| -rw-r--r-- | src/lib/openjp2/openjpeg.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/openjp2/openjpeg.c b/src/lib/openjp2/openjpeg.c index 29d3ee52..34f4fd19 100644 --- a/src/lib/openjp2/openjpeg.c +++ b/src/lib/openjp2/openjpeg.c @@ -144,6 +144,11 @@ static void opj_close_from_file(void* p_user_data) /* ---------------------------------------------------------------------- */ #ifdef _WIN32 #ifndef OPJ_STATIC + +/* declaration to avoid warning: no previous prototype for 'DllMain' */ +BOOL APIENTRY +DllMain(HINSTANCE hModule, DWORD ul_reason_for_call, LPVOID lpReserved); + BOOL APIENTRY DllMain(HINSTANCE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) { |
