bugGlobulation 2 - Bugs: bug #22808, MinGW compiler warnings

 
 

bug #22808: MinGW compiler warnings

Submitted by:  Kieran <k776>
Submitted on:  Wed 02 Apr 2008 04:25:14 AM UTC  
 
Severity: 3 - NormalStatus: Fixed
Assigned to: Bradley Arsenault <genixpro>Open/Closed: Closed
Release: 0.9.3 (Beta 3)Operating System: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 02 Apr 2008 04:25:14 AM UTC, original submission:

With all successful g++ files stripped out, and a lot of duplicate warnings removed, the following compile warnings remain while compiling in MinGW, but not Linux (as far as I can see).

----------------------

g++ -o src\GameGUIDialog.o -c -g -DHAVE_CONFIG_H -D_GNU_SOURCE=1 -Dmain=SDL_main -IC:\msys\1.0\local\include\SDL -IC:\msys\1.0\local\include -IC:\msys\1.0\include\SDL -IC:\msys\1.0\include -Ilibgag\include -I. -IC:\usr\local\include\SDL src\GameGUIDialog.cpp
In file included from src\Game.h:25,
from src\MapEdit.h:27,
from src\EditorMainMenu.cpp:33:
src\Map.h: In constructor `Map::AStarAlgorithmPoint::AStarAlgorithmPoint()':
src\Map.h:793: warning: converting of negative value `-0x000000001' to `Uint16'
src\Map.h:793: warning: converting of negative value `-0x000000001' to `Uint16'

------------------------------------------------------------

g++ -o src\Minimap.o -c -g -DHAVE_CONFIG_H -D_GNU_SOURCE=1 -Dmain=SDL_main -IC:\msys\1.0\local\include\SDL -IC:\msys\1.0\local\include -IC:\msys\1.0\include\SDL -IC:\msys\1.0\include -Ilibgag\include -I. -IC:\usr\local\include\SDL src\Minimap.cpp
In file included from src\Game.h:25,
from src\MapGenerator.cpp:25:
src\MapGenerator.cpp: In member function `bool Map::makeRandomMap(MapGenerationDescriptor&)':
src\MapGenerator.cpp:789: warning: converting to `unsigned int' from `double'

------------------------------------------------------------

g++ -o src\NetBroadcastListener.o -c -g -DHAVE_CONFIG_H -D_GNU_SOURCE=1 -Dmain=SDL_main -IC:\msys\1.0\local\include\SDL -IC:\msys\1.0\local\include -IC:\msys\1.0\include\SDL -IC:\msys\1.0\include -Ilibgag\include -I. -IC:\usr\local\include\SDL src\NetBroadcastListener.cpp
In file included from src\Game.h:25,
from src\GameGUI.h:29,
from src\Engine.h:26,
from src\MultiplayerGame.cpp:21:
src\MultiplayerGame.cpp: In member function `void MultiplayerGame::recieveMessage(boost::shared_ptr<NetMessage>)':
src\MultiplayerGame.cpp:434: warning: converting of negative value `-0x000000001' to `Uint32'

------------------------------------------------------------

g++ -o src\NetMessage.o -c -g -DHAVE_CONFIG_H -D_GNU_SOURCE=1 -Dmain=SDL_main -IC:\msys\1.0\local\include\SDL -IC:\msys\1.0\local\include -IC:\msys\1.0\include\SDL -IC:\msys\1.0\include -Ilibgag\include -I. -IC:\usr\local\include\SDL src\NetMessage.cpp
src\MultiplayerGameScreen.cpp: In constructor `MultiplayerGameScreen::MultiplayerGameScreen(boost::shared_ptr<MultiplayerGame>, boost::shared_ptr<YOGClient>, boost::shared_ptr<IRCTextMessageHandler>)':
src\MultiplayerGameScreen.cpp:41: warning: passing negative value `-0x000000001' for converting 1 of `YOGClientChatChannel::YOGClientChatChannel(Uint32, boost::shared_ptr<YOGClient>)'

------------------------------------------------------------

g++ -o src\NetReteamingInformation.o -c -g -DHAVE_CONFIG_H -D_GNU_SOURCE=1 -Dmain=SDL_main -IC:\msys\1.0\local\include\SDL -IC:\msys\1.0\local\include -IC:\msys\1.0\include\SDL -IC:\msys\1.0\include -Ilibgag\include -I. -IC:\usr\local\include\SDL src\NetReteamingInformation.cpp
src\NetEngine.cpp: In member function `void NetEngine::flushAllOrders()':
src\NetEngine.cpp:152: warning: converting of negative value `-0x000000001' to `Uint32'
src\NetEngine.cpp: In member function `bool NetEngine::matchCheckSums()':
src\NetEngine.cpp:204: warning: converting of negative value `-0x000000001' to `Uint32'

------------------------------------------------------------

g++ -o src\P2PConnection.o -c -g -DHAVE_CONFIG_H -D_GNU_SOURCE=1 -Dmain=SDL_main -IC:\msys\1.0\local\include\SDL -IC:\msys\1.0\local\include -IC:\msys\1.0\include\SDL -IC:\msys\1.0\include -Ilibgag\include -I. -IC:\usr\local\include\SDL src\P2PConnection.cpp
src\Order.cpp: In constructor `Order::Order()':
src\Order.cpp:30: warning: converting of negative value `-0x000000001' to `Uint32'

------------------------------------------------------------

g++ -o src\UnitType.o -c -g -DHAVE_CONFIG_H -D_GNU_SOURCE=1 -Dmain=SDL_main -IC:\msys\1.0\local\include\SDL -IC:\msys\1.0\local\include -IC:\msys\1.0\include\SDL -IC:\msys\1.0\include -Ilibgag\include -I. -IC:\usr\local\include\SDL src\UnitType.cpp
In file included from src\Unit.cpp:25:
src\Map.h: In constructor `Map::AStarAlgorithmPoint::AStarAlgorithmPoint()':
src\Map.h:793: warning: converting of negative value `-0x000000001' to `Uint16'
src\Map.h:793: warning: converting of negative value `-0x000000001' to `Uint16'
src\Unit.cpp: In constructor `Unit::Unit(int, int, Uint16, Sint32, Team*, int)':
src\Unit.cpp:131: warning: converting of negative value `-0x000000001' to `Uint32'
src\Unit.cpp:132: warning: converting of negative value `-0x000000001' to `Uint32'
src\Unit.cpp: In member function `void Unit::load(GAGCore::InputStream, Team, Sint32)':
src\Unit.cpp:221: warning: converting of negative value `-0x000000001' to `Uint32'
src\Unit.cpp:222: warning: converting of negative value `-0x000000001' to `Uint32'
src\Unit.cpp: In member function `void Unit::handleMovement()':
src\Unit.cpp:1411: warning: converting of negative value `-0x000000001' to `Uint32'
src\Unit.cpp:1412: warning: converting of negative value `-0x000000001' to `Uint32'
src\Unit.cpp:1841: warning: converting of negative value `-0x000000001' to `Uint32'
src\Unit.cpp:1842: warning: converting of negative value `-0x000000001' to `Uint32'
src\Unit.cpp:1843: warning: converting of negative value `-0x000000001' to `Uint32'

Kieran <k776>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by k776 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 04 Apr 2008 11:32:09 PM UTCk776StatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1