Warning in DynamixelSDK: Suggest Parentheses Around Assignment

Hi everyone,

I’m working with the DynamixelSDK for turtlebot3 simulation on ROS2 Humble, and I encountered the following warning when compiling:

From what I understand, this warning occurs because an assignment (=) is being used in a return statement without parentheses, which might be misinterpreted as a condition.

Would wrapping the assignment in parentheses like this be the correct fix?

return (error[0] = error_list_[id][0]);

Or is there a better way to handle this to avoid any unintended behavior?