You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have so far found 4 instances of improper printf usage in the examples.
Throughout the depthai codebase, there is a often used 32-bit viewpoint. They are exposed when compiling for 64-bit and I can see this in float/int issues and now in printf issues.
I can see you specifically enabled such detection in clang in flags.cmake.
I have found it in MSVC.
...
..\examples\IMU\imu_gyroscope_accelerometer.cpp(61): warning C4477: 'printf' : format string '%ld' requires an argument of type 'long', but variadic argument 1 has type '__int64'
..\examples\IMU\imu_gyroscope_accelerometer.cpp(63): warning C4477: 'printf' : format string '%ld' requires an argument of type 'long', but variadic argument 1 has type '__int64'
..\examples\IMU\imu_rotation_vector.cpp(48): warning C4477: 'printf' : format string '%ld' requires an argument of type 'long', but variadic argument 1 has type '__int64'
..\examples\MobileNet\webcam_mobilenet_example.cpp(111): warning C4477: 'printf' : format string '%lu' requires an argument of type 'unsigned long', but variadic argument 1 has type 'unsigned __int64'
...
The text was updated successfully, but these errors were encountered:
diablodale
added a commit
to diablodale/depthai-core
that referenced
this issue
Nov 17, 2021
I have so far found 4 instances of improper printf usage in the examples.
Throughout the depthai codebase, there is a often used 32-bit viewpoint. They are exposed when compiling for 64-bit and I can see this in float/int issues and now in printf issues.
I can see you specifically enabled such detection in clang in
flags.cmake
.I have found it in MSVC.
Setup
Repro
The text was updated successfully, but these errors were encountered: