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

cherry-picked fixes by emlai, fix compilation again #54

Merged
merged 7 commits into from
May 29, 2016

Conversation

DanielGibson
Copy link

These are the change from @emlai's fix_warnings branch (see #45) that are not redundant with changes I have done. I hope I didn't miss anything important.

I also added a commit to make things build on my machine again, the recent fixes for GCC 6.1.1 broke it for me.

emlai and others added 7 commits May 30, 2016 00:44
That would never trigger the ASSERT. Now they always do.

Conflicts:
	Sources/EntitiesMP/Summoner.es
Thanks @SLAwww

(The first parameter to _assert is actually the message, not the
expression to evaluate, so "false &&" doesn't belong in there.)

Conflicts:
	Sources/EntitiesMP/Summoner.es
Also changed all "if (this==NULL) return;"s.

Fixes some -Wtautological-undefined-compare warnings.

Quoting Clang:
"'this' pointer cannot be null in well-defined C++ code; comparison may
be assumed to always evaluate to false"
(I didn't receive any warnings after enabling -Wsign-compare.)

Conflicts:
	Sources/CMakeLists.txt
Quoting Clang:
"reference cannot be bound to dereferenced null pointer in well-defined
C++ code; comparison may be assumed to always evaluate to false"

Conflicts:
	Sources/CMakeLists.txt
At least on my system floor() and log10() return double, so the other
arguments to Clamp() and ClampDn() didn't match anymore, now being float
instead of double.
I replaced the calls to log10f() and floorf() to avoid any ambiguities.
@DanielGibson DanielGibson mentioned this pull request May 29, 2016
@icculus icculus merged commit aced268 into icculus:master May 29, 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

Successfully merging this pull request may close these issues.

3 participants