Fixed Ubuntu warnings.

This commit is contained in:
Nissim Hadar 2018-02-15 07:54:55 -08:00
parent adb02d69f9
commit 7e99570824
3 changed files with 2 additions and 3 deletions

View file

@ -619,7 +619,6 @@ void ModelEntityItem::setColor(const rgbColor& value) {
});
}
#pragma optimize("", off)
void ModelEntityItem::setColor(const xColor& value) {
withWriteLock([&] {
_color[RED_INDEX] = value.red;

View file

@ -69,7 +69,7 @@ void Light::setCastShadows(const bool castShadows) {
_castShadows = castShadows;
}
const bool Light::getCastShadows() const {
bool Light::getCastShadows() const {
return _castShadows;
}

View file

@ -104,7 +104,7 @@ public:
const Vec3& getDirection() const;
void setCastShadows(const bool castShadows);
const bool getCastShadows() const;
bool getCastShadows() const;
void setOrientation(const Quat& orientation);
const glm::quat& getOrientation() const { return _transform.getRotation(); }