Skip to content
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

Fix convert from char on ARM build #1399

Merged
merged 1 commit into from
Oct 13, 2018
Merged

Conversation

mgaio
Copy link
Contributor

@mgaio mgaio commented Oct 3, 2018

Some platforms set the signedness of char to unsigned (eg. ARM).
Convert from char should not assume the signedness of char.

Fix build issue with -Werror,-Wtautological-unsigned-zero-compare flags.

Signed-off-by: Miguel Gaio [email protected]

Description

This fix build issue on ARM target with -Werror,-Wtautological-unsigned-zero-compare flags.
Following compiler logs is observed

catch2/include/internal/catch_tostring.cpp:217:21: error: comparison of 0 <= unsigned expression is always true [-Werror,-Wtautological-unsigned-zero-compare]
} else if ('\0' <= value && value < ' ') {

GitHub Issues

N/A

Some platforms set the signedness of char to unsigned (eg. ARM).
Convert from char should not assume the signedness of char.

Fix build issue with -Werror,-Wtautological-unsigned-zero-compare flags.

Signed-off-by: Miguel Gaio <[email protected]>
@mgaio mgaio mentioned this pull request Oct 11, 2018
@codecov
Copy link

codecov bot commented Oct 12, 2018

Codecov Report

Merging #1399 into master will increase coverage by 0.06%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #1399      +/-   ##
==========================================
+ Coverage   80.08%   80.14%   +0.06%     
==========================================
  Files         119      119              
  Lines        3389     3389              
==========================================
+ Hits         2714     2716       +2     
+ Misses        675      673       -2

@horenmar
Copy link
Member

Thanks.

@horenmar horenmar merged commit f1faaa9 into catchorg:master Oct 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants