Skip to content

travis.yml: use --enable-werror on debug builds#1637

Closed
bagder wants to merge 3 commits into
masterfrom
bagder/travis-werror
Closed

travis.yml: use --enable-werror on debug builds#1637
bagder wants to merge 3 commits into
masterfrom
bagder/travis-werror

Conversation

@bagder

@bagder bagder commented Jul 3, 2017

Copy link
Copy Markdown
Member

... to better detect and fault on compiler warnings/errors

... to better detect and fault on compiler warnings/errors
@mention-bot

Copy link
Copy Markdown

@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.

@bagder bagder added the build label Jul 3, 2017
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.02%) to 74.035% when pulling c0e0ee1 on bagder/travis-werror into b3786f6 on master.

tool_sleep.c:54:24: error: implicit conversion loses integer precision:
'long' to '__darwin_suseconds_t' (aka 'int')
[-Werror,-Wshorten-64-to-32]
Comment thread src/tool_sleep.c Outdated
timeout.tv_sec = ms / 1000L;
ms = ms % 1000L;
timeout.tv_usec = ms * 1000L;
timeout.tv_usec = (int)ms * 1000L;

Copy link
Copy Markdown
Member

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?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, I bet... thanks!

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.004%) to 74.019% when pulling 493517d on bagder/travis-werror into b3786f6 on master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 74.015% when pulling 66ecf4a on bagder/travis-werror into b3786f6 on master.

@bagder bagder closed this in fc2e81c Jul 4, 2017
@bagder
bagder deleted the bagder/travis-werror branch July 4, 2017 08:28
@lock lock Bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Development

Successfully merging this pull request may close these issues.

4 participants