summaryrefslogtreecommitdiff
path: root/tests/test_header_guard.cpp
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2016-11-17 21:33:54 -0800
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2016-11-17 21:33:54 -0800
commit2af2524db5cad4be3773d2b4cd49254c0f0b7758 (patch)
treefa227eadddeeb52b7a77dede9b286c567db8a89d /tests/test_header_guard.cpp
parent6c2cd5210c0907313c54b25d1aee2bec93251771 (diff)
Fix 'comparison of unsigned expression < 0 is always false' warnings
Unfortunately, some compilers don't suppress these kinds of warnings in template instantiations; solve this by moving the responsibility for computing negative bool to the caller. Also since we're doing that we don't really need to convert to unsigned in the implementation - might as well have the caller do it, which removes some type dispatch logic and slightly reduces binary size.
Diffstat (limited to 'tests/test_header_guard.cpp')
0 files changed, 0 insertions, 0 deletions