syoyo / tinyexr

Tiny OpenEXR image loader/saver library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

meh, MSVC warning treated as error #pragma warning(push) mismatch

yibbidy opened this issue · comments

I noticed a mismatched #pragma warning(push) #pragma warning(pop) in tinyexr.h regarding the MINIZ_HEADER_FILE_ONLY macro on a Win build:

tinyexr.h
1883 #ifndef MINIZ_HEADER_FILE_ONLY
...
4447 #pragma warning(push)
...
6920 #endif // MINIZ_HEADER_FILE_ONLY
...
6961 #pragma warning(pop) <--- that should be in the MINIZ_HEADER_FILE_ONLY scope

Good catch! Fixed.