Merge pull request #3196 from Carbenium/clang-build-fix

Fix build under clang
This commit is contained in:
Isaac Connor 2021-03-18 15:37:56 -04:00 committed by GitHub
commit c0f53382c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
target_compile_options(zm-warning-interface
INTERFACE
-Wall
-Wconditionally-supported
-Wextra
-Wformat-security
-Wno-cast-function-type

View File

@ -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<int>(buffer));
return total_bytes_read;
} // end readData