GreycLab / CImg

The CImg Library is a small and open-source C++ toolkit for image processing
http://cimg.eu
Other
1.46k stars 278 forks source link

fix for cimg_no_system_calls #401

Closed mariuszmaximus closed 8 months ago

mariuszmaximus commented 8 months ago

small fix for cimg_no_system_calls

example for iOS I can't build with -Werror

#ifdef __APPLE__
    #include <TargetConditionals.h>
    #ifdef TARGET_OS_IPHONE
        // iOS, tvOS, or watchOS device
        #define cimg_no_system_calls
    #endif
#endif

#include <CImg.h>
error: unused parameter 'command' [-Werror,-Wunused-parameter]
error: unused parameter 'is_verbose' [-Werror,-Wunused-parameter]