[Bug 209742] devel/godot: Update to 2.0.4.1; add devel/godot-tools port

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Jul 15 19:02:48 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209742

--- Comment #53 from lightside <lightside at gmx.com> ---
I found the cause of your proposed changes, if compiling the test.cpp code
(from comment #51) with Clang 3.8 compiler from devel/llvm38 port:
-8<--
% clang++38 test.cpp -o test_38
test.cpp:11:9: warning: taking the absolute value of unsigned type 'unsigned
int' has no effect [-Wabsolute-value]
        return abs(a - b) > 100;
               ^
test.cpp:11:9: note: remove the call to 'abs' since unsigned values cannot be
negative
        return abs(a - b) > 100;
               ^~~
1 warning generated.
-->8-
But it gave the same wrong result without abs:
-8<--
% ./test_38 
check(44100, 44200) = 1; check_abs(44100, 44200) = 0
check(44200, 44200) = 0; check_abs(44200, 44200) = 0
check(44300, 44200) = 0; check_abs(44300, 44200) = 0
-->8-
Therefore, this Clang 3.8 compiler's suggestion is wrong also.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list