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

Warnings #289

Closed
vitaut opened this issue Mar 8, 2016 · 1 comment
Closed

Warnings #289

vitaut opened this issue Mar 8, 2016 · 1 comment

Comments

@vitaut
Copy link
Contributor

vitaut commented Mar 8, 2016

A few warnings in tests:

�[0m/home/travis/build/cppformat/cppformat/test/printf-test.cc: In function ‘void TestLength(const char*) [with T = unsigned char]’:
/home/travis/build/cppformat/cppformat/test/printf-test.cc:362:33:   instantiated from here
/home/travis/build/cppformat/cppformat/test/printf-test.cc:342:3: warning: comparison is always true due to limited range of data type [-Wtype-limits]
/home/travis/build/cppformat/cppformat/test/printf-test.cc:362:33:   instantiated from here
/home/travis/build/cppformat/cppformat/test/printf-test.cc:345:3: warning: comparison is always false due to limited range of data type [-Wtype-limits]
/home/travis/build/cppformat/cppformat/test/printf-test.cc: In function ‘void TestLength(const char*) [with T = short unsigned int]’:
/home/travis/build/cppformat/cppformat/test/printf-test.cc:364:33:   instantiated from here
/home/travis/build/cppformat/cppformat/test/printf-test.cc:342:3: warning: comparison is always true due to limited range of data type [-Wtype-limits]
/home/travis/build/cppformat/cppformat/test/printf-test.cc:364:33:   instantiated from here
/home/travis/build/cppformat/cppformat/test/printf-test.cc:345:3: warning: comparison is always false due to limited range of data type [-Wtype-limits]
/home/travis/build/cppformat/cppformat/test/printf-test.cc: In function ‘void TestLength(const char*) [with T = long unsigned int]’:
/home/travis/build/cppformat/cppformat/test/printf-test.cc:366:32:   instantiated from here
/home/travis/build/cppformat/cppformat/test/printf-test.cc:342:3: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
/home/travis/build/cppformat/cppformat/test/printf-test.cc:366:32:   instantiated from here
/home/travis/build/cppformat/cppformat/test/printf-test.cc:345:3: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
/home/travis/build/cppformat/cppformat/test/printf-test.cc: In function ‘void TestLength(const char*) [with T = long long unsigned int]’:
/home/travis/build/cppformat/cppformat/test/printf-test.cc:368:34:   instantiated from here
/home/travis/build/cppformat/cppformat/test/printf-test.cc:342:3: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
/home/travis/build/cppformat/cppformat/test/printf-test.cc:368:34:   instantiated from here
/home/travis/build/cppformat/cppformat/test/printf-test.cc:345:3: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]

https://travis-ci.org/cppformat/cppformat/jobs/114551267

@vitaut
Copy link
Contributor Author

vitaut commented Mar 9, 2016

Fixed in 59607f5.

@vitaut vitaut closed this as completed Mar 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant