diff --git a/cmake/compiler/gcc/settings.cmake b/cmake/compiler/gcc/settings.cmake index 87ff6e939..497db5a17 100644 --- a/cmake/compiler/gcc/settings.cmake +++ b/cmake/compiler/gcc/settings.cmake @@ -1,6 +1,7 @@ target_compile_options(zm-warning-interface INTERFACE -Wall + -Wconditionally-supported -Wextra -Wformat-security -Wno-cast-function-type diff --git a/src/zm_remote_camera_http.cpp b/src/zm_remote_camera_http.cpp index 3cfdc7412..010fc4fbc 100644 --- a/src/zm_remote_camera_http.cpp +++ b/src/zm_remote_camera_http.cpp @@ -289,7 +289,7 @@ int RemoteCameraHttp::ReadData(Buffer &buffer, unsigned int bytes_expected) { total_bytes_to_read -= bytes_read; } while (total_bytes_to_read); - Debug(4, "buffer: %s", buffer); + Debug(4, "buffer size: %d", static_cast(buffer)); return total_bytes_read; } // end readData