Fix almost every warning (#2195)

Fix almost every warning as of Clang 19

* <codecvt> is deprecated, we can use QString's UTF-16 conversion
  instead
* remove sem_timedwait implementation as we don't need it anymore
* remove a useless shift that has its result discarded
* change usages of deprecated sprintf to snprintf
This commit is contained in:
Nadia Holmquist Pedersen
2024-12-25 16:54:10 +01:00
committed by GitHub
parent be26878b4c
commit c41951d49c
18 changed files with 50 additions and 540 deletions

View File

@ -59,6 +59,8 @@ void CameraFrameDumper::present(const QVideoFrame& _frame)
case QVideoFrameFormat::Format_NV12:
cam->feedFrame_NV12((u8*)frame.bits(0), (u8*)frame.bits(1), frame.width(), frame.height());
break;
default:
break;
}
frame.unmap();