Fix warnings as errors flag in workflow
@@ -29,7 +29,7 @@ jobs:
- name: submodules
run: git submodule update --init --recursive --depth 1
- name: cmake
- run: cmake -B build -G "NMake Makefiles" -DUSE_GNUTLS=0 -DNO_MEDIA=1 -WARNINGS_AS_ERRORS=1
+ run: cmake -B build -G "NMake Makefiles" -DUSE_GNUTLS=0 -DNO_MEDIA=1 -DWARNINGS_AS_ERRORS=1
- name: nmake
run: |
cd build
@@ -45,7 +45,7 @@ jobs:
- run: cmake -B build -G "NMake Makefiles" -DUSE_GNUTLS=0 -WARNINGS_AS_ERRORS=1
+ run: cmake -B build -G "NMake Makefiles" -DUSE_GNUTLS=0 -DWARNINGS_AS_ERRORS=1
@@ -309,7 +309,7 @@ public:
return msg;
}
- auto res = incomingCallback(reinterpret_cast<void *>(msg->data()), msg->size());
+ auto res = incomingCallback(reinterpret_cast<void *>(msg->data()), int(msg->size()));
// If a null pointer was returned, drop the incoming message
if (res == nullptr) {