We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The compilation has the device raise this interesting warning:
1266 | b = optionValue2Perc(RS2_OPTION_EXPOSURE, m_color_sensor, (float&) value, valToGet); | ^~~~~ ../src/devices/realsense2/realsense2Driver.cpp:1270:76: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 1270 | b = optionValue2Perc(RS2_OPTION_GAIN, m_color_sensor, (float&) value, valToGet); | ^~~~~ ../src/devices/realsense2/realsense2Driver.cpp:1280:85: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 1280 | b = optionValue2Perc(RS2_OPTION_WHITE_BALANCE, m_color_sensor, (float&) value, valToGet); | ^~~~~ ../src/devices/realsense2/realsense2Driver.cpp:1284:81: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 1284 | b = optionValue2Perc(RS2_OPTION_SHARPNESS, m_color_sensor, (float&) value, valToGet); | ^~~~~ ../src/devices/realsense2/realsense2Driver.cpp:1288:75: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 1288 | b = optionValue2Perc(RS2_OPTION_HUE, m_color_sensor, (float&) value, valToGet); | ^~~~~ ../src/devices/realsense2/realsense2Driver.cpp:1292:82: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 1292 | b = optionValue2Perc(RS2_OPTION_SATURATION, m_color_sensor, (float&) value, valToGet); |
Not sure if anyone is interested in fixing it, but I open an issue to track it.
The text was updated successfully, but these errors were encountered:
An option that seems to work is:
optionValue2Perc
static bool optionValue2Perc(rs2_option option,const rs2::sensor* sensor, double* perc, const float& value)
value
(float&) value
Sorry, something went wrong.
then row 217 must be a *perc = ...
Feel free to open a PR if you like, thanks!
No branches or pull requests
The compilation has the device raise this interesting warning:
Not sure if anyone is interested in fixing it, but I open an issue to track it.
The text was updated successfully, but these errors were encountered: