From 7ed07bcd1331a45e30e7172709aa4fe81b7d677a Mon Sep 17 00:00:00 2001 From: kervala Date: Wed, 6 Jan 2016 16:03:04 +0100 Subject: [PATCH] Fixed: Warnings with GCC --- code/ryzom/server/src/ai_share/ai_event.h | 3 +- .../screenshot_islands.cpp | 29 +++++++++++++------ 2 files changed, 22 insertions(+), 10 deletions(-) diff --git a/code/ryzom/server/src/ai_share/ai_event.h b/code/ryzom/server/src/ai_share/ai_event.h index 267d0f456..c62b1be81 100644 --- a/code/ryzom/server/src/ai_share/ai_event.h +++ b/code/ryzom/server/src/ai_share/ai_event.h @@ -88,7 +88,8 @@ public: const CAIEventType &operator=(const CAIEventType &other) { _val=other._val; - } + return *this; + } bool operator==(const CAIEventType &other) const { return _val==other._val; diff --git a/code/ryzom/tools/client/r2_islands_textures/screenshot_islands.cpp b/code/ryzom/tools/client/r2_islands_textures/screenshot_islands.cpp index 617605399..0cf9686b5 100644 --- a/code/ryzom/tools/client/r2_islands_textures/screenshot_islands.cpp +++ b/code/ryzom/tools/client/r2_islands_textures/screenshot_islands.cpp @@ -844,6 +844,7 @@ void CScreenshotIslands::processProximityBuffer(TBuffer & inputBuffer, uint32 li bool lastValue = false; CVector2f firstPixelBorder; + firstPixelBorder.set(0.f, 0.f); uint32 nbPixelsBorder = 0; for (uint32 x=0;x