adds dynamic preview loading and silence minizip warnings (#11)
* make use of the return value for safety * get rid of warnings (sizeof(wchar_t) is the same as sizeof(u32), so no problem there) * dynamic preview loading fix crash when too many themes have previews available
This commit is contained in:
@@ -21,6 +21,14 @@
|
||||
access functions to crctables and pkeys
|
||||
*/
|
||||
|
||||
//taken and adapted from https://stackoverflow.com/a/13492589
|
||||
|
||||
// save diagnostic state
|
||||
#pragma GCC diagnostic push
|
||||
|
||||
// turn off the specific warning. Can also use "-Wall"
|
||||
#pragma GCC diagnostic ignored "-Wtype-limits"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -1949,3 +1957,6 @@ extern int ZEXPORT unzeof(unzFile file)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
// turn the warnings back on
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
Reference in New Issue
Block a user