diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2023-03-09 21:15:39 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-09 21:15:39 +0100 |
| commit | 15c0dca5206d0101de2ce73b97138a2b26949011 (patch) | |
| tree | 229102c5ce1f56d31007ce5db8da4bc47c0ec8f7 /src/lib/openjp2/openjpeg.c | |
| parent | fbdf28a282cce8e4ba9d6a5d8c2a3332e20f3bb9 (diff) | |
| parent | eb8a7e44279415fdefda6d980b99bd7e00c41da0 (diff) | |
Merge pull request #1462 from sebras/master
CMake: error out on warnings for strict/missing prototypes.
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) { |
