-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
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
travis.yml: use --enable-werror on debug builds #1637
Conversation
... to better detect and fault on compiler warnings/errors
@bagder, thanks for your PR! By analyzing the history of the files in this pull request, we identified @sieben, @MarcelRaad and @jactry to be potential reviewers. |
tool_sleep.c:54:24: error: implicit conversion loses integer precision: 'long' to '__darwin_suseconds_t' (aka 'int') [-Werror,-Wshorten-64-to-32]
src/tool_sleep.c
Outdated
@@ -51,7 +51,7 @@ void tool_go_sleep(long ms) | |||
struct timeval timeout; | |||
timeout.tv_sec = ms / 1000L; | |||
ms = ms % 1000L; | |||
timeout.tv_usec = ms * 1000L; | |||
timeout.tv_usec = (int)ms * 1000L; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you're still multiplying it by a long constant.. you don't get a warning with that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, I bet... thanks!
... to better detect and fault on compiler warnings/errors