Revision: 6628
http://planeshift.svn.sourceforge.net/planeshift/?rev=6628&view=rev
Author: rlydontknow
Date: 2010-12-29 21:53:26 +0000 (Wed, 29 Dec 2010)
Log Message:
-----------
more pedantic warning fixes
Modified Paths:
--------------
trunk/src/client/charapp.cpp
trunk/src/client/chatbubbles.cpp
trunk/src/client/cmdgroups.cpp
trunk/src/client/cmdusers.cpp
trunk/src/client/cmdutil.cpp
trunk/src/client/entitylabels.cpp
trunk/src/client/gui/chatwindow.cpp
trunk/src/client/gui/inventorywindow.cpp
trunk/src/client/gui/pawsbankwindow.cpp
trunk/src/client/gui/pawsbookreadingwindow.cpp
trunk/src/client/gui/pawsbuddy.cpp
trunk/src/client/gui/pawscharbirth.cpp
trunk/src/client/gui/pawscharcreatemain.cpp
trunk/src/client/gui/pawschardescription.cpp
trunk/src/client/gui/pawscharparents.cpp
trunk/src/client/gui/pawscharpick.cpp
trunk/src/client/gui/pawschild.cpp
trunk/src/client/gui/pawsconfigautoexec.cpp
trunk/src/client/gui/pawsconfigautoexec.h
trunk/src/client/gui/pawsconfigcamera.cpp
trunk/src/client/gui/pawsconfigchat.cpp
trunk/src/client/gui/pawsconfigchat.h
trunk/src/client/gui/pawsconfigchatbubbles.cpp
trunk/src/client/gui/pawsconfigchatbubbles.h
trunk/src/client/gui/pawsconfigchattabcompletion.h
trunk/src/client/gui/pawsconfigdetails.cpp
trunk/src/client/gui/pawsconfigentityinter.cpp
trunk/src/client/gui/pawsconfigentityinter.h
trunk/src/client/gui/pawsconfigentitylabels.cpp
trunk/src/client/gui/pawsconfigentitylabels.h
trunk/src/client/gui/pawsconfigkeys.cpp
trunk/src/client/gui/pawsconfigkeys.h
trunk/src/client/gui/pawsconfigmarriage.h
trunk/src/client/gui/pawsconfigmouse.cpp
trunk/src/client/gui/pawsconfigpvp.h
trunk/src/client/gui/pawsconfigshadows.cpp
trunk/src/client/gui/pawsconfigshadows.h
trunk/src/client/gui/pawsconfigsound.cpp
trunk/src/client/gui/pawsconfigsound.h
trunk/src/client/gui/pawsconfigwindow.cpp
trunk/src/client/gui/pawsconfigwindow.h
trunk/src/client/gui/pawscontainerdescwindow.cpp
trunk/src/client/gui/pawscontrolwindow.cpp
trunk/src/client/gui/pawscraft.cpp
trunk/src/client/gui/pawscraftcancelwindow.cpp
trunk/src/client/gui/pawscreditswindow.cpp
trunk/src/client/gui/pawsdetailwindow.cpp
trunk/src/client/gui/pawsexchangewindow.cpp
trunk/src/client/gui/pawsglyphwindow.cpp
trunk/src/client/gui/pawsgmaction.cpp
trunk/src/client/gui/pawsgmgui.cpp
trunk/src/client/gui/pawsgmspawn.cpp
trunk/src/client/gui/pawsgroupwindow.cpp
trunk/src/client/gui/pawsguildwindow.cpp
trunk/src/client/gui/pawsignore.cpp
trunk/src/client/gui/pawsilluminationwindow.cpp
trunk/src/client/gui/pawsilluminationwindow.h
trunk/src/client/gui/pawsinfowindow.cpp
trunk/src/client/gui/pawsinteractwindow.cpp
trunk/src/client/gui/pawsinventorydollview.cpp
trunk/src/client/gui/pawsitemdescriptionwindow.cpp
trunk/src/client/gui/pawslife.cpp
trunk/src/client/gui/pawsloginwindow.cpp
trunk/src/client/gui/pawslootwindow.cpp
trunk/src/client/gui/pawsmerchantwindow.cpp
trunk/src/client/gui/pawsmoney.cpp
trunk/src/client/gui/pawsmoney.h
trunk/src/client/gui/pawsnpcdialog.cpp
trunk/src/client/gui/pawspath.cpp
trunk/src/client/gui/pawspetitiongmwindow.cpp
trunk/src/client/gui/pawspetitionwindow.cpp
trunk/src/client/gui/pawspetstatwindow.cpp
trunk/src/client/gui/pawsquestrewardwindow.cpp
trunk/src/client/gui/pawsquestwindow.cpp
trunk/src/client/gui/pawsquitinfobox.cpp
trunk/src/client/gui/pawsskillwindow.cpp
trunk/src/client/gui/pawssmallinventory.cpp
trunk/src/client/gui/pawsspellbookwindow.cpp
trunk/src/client/gui/pawsspellcancelwindow.cpp
trunk/src/client/gui/pawsstoragewindow.cpp
trunk/src/client/gui/pawssummary.cpp
trunk/src/client/gui/pawstutorialwindow.cpp
trunk/src/client/gui/pawswritingwindow.cpp
trunk/src/client/gui/psmainwidget.cpp
trunk/src/client/gui/psmainwidget.h
trunk/src/client/gui/shortcutwindow.cpp
trunk/src/client/guihandler.h
trunk/src/client/modehandler.cpp
trunk/src/client/pscal3dcallback.cpp
trunk/src/client/pscal3dcallback.h
trunk/src/client/pscamera.cpp
trunk/src/client/pscelclient.h
trunk/src/client/pscharcontrol.cpp
trunk/src/client/psinventorycache.cpp
trunk/src/client/psmovement.cpp
trunk/src/client/psoptions.cpp
trunk/src/client/psslotmgr.cpp
trunk/src/client/questionclient.cpp
trunk/src/client/weather.cpp
trunk/src/client/weather.h
trunk/src/common/bgloader/parser.cpp
trunk/src/common/celgraph/celgraph.cpp
trunk/src/common/effects/pseffect.h
trunk/src/common/effects/pseffectobjquad.h
trunk/src/common/effects/pseffectobjtextable.h
trunk/src/common/net/clientmsghandler.cpp
trunk/src/common/net/connection.cpp
trunk/src/common/net/messages.cpp
trunk/src/common/net/messages.h
trunk/src/common/net/netbase.cpp
trunk/src/common/net/npcmessages.h
trunk/src/common/paws/pawscolorpromptwindow.h
trunk/src/common/paws/pawscombopromptwindow.h
trunk/src/common/paws/pawscrollbar.h
trunk/src/common/paws/pawskeyselectbox.h
trunk/src/common/paws/pawsmenu.h
trunk/src/common/paws/pawsnumberpromptwindow.h
trunk/src/common/paws/pawspromptwindow.h
trunk/src/common/paws/pawssimplewindow.h
trunk/src/common/paws/pawsstringpromptwindow.h
trunk/src/common/paws/pawstextbox.h
trunk/src/common/paws/pawstextwrap.cpp
trunk/src/common/paws/pawstree.h
trunk/src/common/paws/pawswidget.h
trunk/src/common/pssound/psentity.cpp
trunk/src/common/recast/CelNavMesh.cpp
trunk/src/common/rpgrules/factions.cpp
trunk/src/common/sound/system.cpp
trunk/src/common/util/genericevent.h
trunk/src/common/util/minigame.h
trunk/src/common/util/namegenerator.cpp
trunk/src/common/util/pspath.cpp
trunk/src/pslaunch/download.cpp
trunk/src/pslaunch/pawslauncherwindow.cpp
trunk/src/pslaunch/pslaunch.cpp
Modified: trunk/src/client/charapp.cpp
===================================================================
--- trunk/src/client/charapp.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/charapp.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -392,7 +392,7 @@
void psCharAppearance::EyeColor(csVector3& color)
{
eyeShader = color;
- iShaderVariableContext* context_eyes;
+ iShaderVariableContext* context_eyes = 0;
if(state)
{
@@ -1058,7 +1058,7 @@
usedSlots.PushSmart(socket);
}
-bool psCharAppearance::ProcessMaterial(csRef<iMaterialWrapper> material, const char* materialName, const char* partName)
+bool psCharAppearance::ProcessMaterial(csRef<iMaterialWrapper> material, const char* /*materialName*/, const char* partName)
{
bool success = false;
if (state.IsValid())
Modified: trunk/src/client/chatbubbles.cpp
===================================================================
--- trunk/src/client/chatbubbles.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/chatbubbles.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -131,7 +131,7 @@
csRef<iDocumentNode> chatNode = nodes->Next();
int r, g, b;
- BubbleChatType chat = { CHAT_SAY, {"", 0, false, 0, false, 0, ETA_LEFT}, "chatbubble_"};
+ BubbleChatType chat = { CHAT_SAY, {"", 0, false, 0, false, 0, ETA_LEFT}, "chatbubble_", true };
csString type = chatNode->GetAttributeValue("type");
type.Downcase();
@@ -231,7 +231,7 @@
return true;
}
-bool psChatBubbles::Verify(MsgEntry * msg, unsigned int flags, Client *& client)
+bool psChatBubbles::Verify(MsgEntry* /*msg*/, unsigned int /*flags*/, Client*& /*client*/)
{
return true;
}
@@ -251,7 +251,7 @@
return NULL;
}
-void psChatBubbles::HandleMessage(MsgEntry * msg, Client * client)
+void psChatBubbles::HandleMessage(MsgEntry* msg, Client* /*client*/)
{
#ifdef DISABLE_CHAT_BUBBLES
return;
Modified: trunk/src/client/cmdgroups.cpp
===================================================================
--- trunk/src/client/cmdgroups.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/cmdgroups.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -70,7 +70,7 @@
return NULL;
}
-void psGroupCommands::HandleMessage(MsgEntry *msg)
+void psGroupCommands::HandleMessage(MsgEntry* /*msg*/)
{
}
Modified: trunk/src/client/cmdusers.cpp
===================================================================
--- trunk/src/client/cmdusers.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/cmdusers.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -1007,7 +1007,7 @@
csVector3 myPos = myEntity->GetPosition();
float seDistance;
- csVector3 sePos;
+ csVector3 sePos(myPos);
if (startingEntity != NULL)
{
sePos = startingEntity->GetPosition();
Modified: trunk/src/client/cmdutil.cpp
===================================================================
--- trunk/src/client/cmdutil.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/cmdutil.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -287,7 +287,7 @@
}
-void psUtilityCommands::HandleQuit( bool answeredYes, void *thisPtr )
+void psUtilityCommands::HandleQuit( bool answeredYes, void* /*thisPtr*/ )
{
if (answeredYes)
psengine->QuitClient();
Modified: trunk/src/client/entitylabels.cpp
===================================================================
--- trunk/src/client/entitylabels.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/entitylabels.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -173,7 +173,7 @@
colors[ENTITY_GUILD] = entityColors[ENTITY_GUILD];
}
-bool psEntityLabels::HandleEvent(iEvent & ev)
+bool psEntityLabels::HandleEvent(iEvent& /*ev*/)
{
static unsigned int count = 0;
if (++count%10 != 0) // Update once every 10th frame
Modified: trunk/src/client/gui/chatwindow.cpp
===================================================================
--- trunk/src/client/gui/chatwindow.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/chatwindow.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -1913,8 +1913,8 @@
{
int i = 0;
csString buf;
- while (!replyList[i].IsEmpty() && i <= 4)
- i++;
+ while (i < 4 && !replyList[i].IsEmpty())
+ ++i;
if (!i)
{
textToSend.Insert(0, "/tell ");
@@ -1982,7 +1982,7 @@
return pawsWidget::OnMenuAction(widget, action);
}
-bool pawsChatWindow::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsChatWindow::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
// We know that the calling widget is a button.
csString name = widget->GetName();
@@ -2160,8 +2160,8 @@
int i = 0;
csString buf;
- while (!replyList[i].IsEmpty() && i <= 4)
- i++;
+ while (i < 4 && !replyList[i].IsEmpty())
+ ++i;
if (!i)
{
@@ -2308,7 +2308,7 @@
return "";
}
-void pawsChatWindow::ChatOutput(const char* data, int colour, int type, bool flashEnabled, bool hasCharName, int hotkeyChannel)
+void pawsChatWindow::ChatOutput(const char* data, int colour, int type, bool /*flashEnabled*/, bool /*hasCharName*/, int hotkeyChannel)
{
csString s = data;
if (settings.enableBadWordsFilterIncoming && type != CHAT_SERVER_INFO &&
Modified: trunk/src/client/gui/inventorywindow.cpp
===================================================================
--- trunk/src/client/gui/inventorywindow.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/inventorywindow.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -256,7 +256,7 @@
}
-bool pawsInventoryWindow::OnButtonPressed( int mouseButton, int keyModifer, pawsWidget* widget )
+bool pawsInventoryWindow::OnButtonPressed(int /*mouseButton*/, int /*keyModifer*/, pawsWidget* widget)
{
// Check to see if this was the view button.
if ( widget->GetID() == VIEW_BUTTON )
Modified: trunk/src/client/gui/pawsbankwindow.cpp
===================================================================
--- trunk/src/client/gui/pawsbankwindow.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsbankwindow.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -203,7 +203,7 @@
}
}
-bool pawsBankWindow::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsBankWindow::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
if(widget->GetID() == MONEYBUTTON)
{
Modified: trunk/src/client/gui/pawsbookreadingwindow.cpp
===================================================================
--- trunk/src/client/gui/pawsbookreadingwindow.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsbookreadingwindow.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -128,7 +128,7 @@
}
}
-bool pawsBookReadingWindow::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsBookReadingWindow::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
if(widget->GetID() == EDIT){
// attempt to write on this book
Modified: trunk/src/client/gui/pawsbuddy.cpp
===================================================================
--- trunk/src/client/gui/pawsbuddy.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsbuddy.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -155,7 +155,7 @@
}
-bool pawsBuddyWindow::OnButtonReleased( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsBuddyWindow::OnButtonReleased(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
switch ( widget->GetID() )
{
@@ -217,7 +217,7 @@
return false;
}
-void pawsBuddyWindow::OnStringEntered(const char *name,int param,const char *value)
+void pawsBuddyWindow::OnStringEntered(const char* name, int /*param*/, const char* value)
{
if (!value || !strlen(value))
{
Modified: trunk/src/client/gui/pawscharbirth.cpp
===================================================================
--- trunk/src/client/gui/pawscharbirth.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawscharbirth.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -123,7 +123,7 @@
return true;
}
-bool pawsCharBirth::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsCharBirth::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
/// Check to see if it is one of the sibling buttons
if ( strncmp( widget->GetName(), "sibling", 7 ) == 0 )
Modified: trunk/src/client/gui/pawscharcreatemain.cpp
===================================================================
--- trunk/src/client/gui/pawscharcreatemain.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawscharcreatemain.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -285,7 +285,7 @@
hairStyleLabel->SetText(PawsManager::GetSingleton().Translate("Hair Style"));
}
-void pawsCreationMain::ChangeHairStyle( int newChoice, int oldChoice )
+void pawsCreationMain::ChangeHairStyle(int newChoice, int /*oldChoice*/)
{
// RemoveHairStyle( oldChoice );
SetHairStyle( newChoice );
@@ -481,7 +481,7 @@
UpdateRace(race);
}
-bool pawsCreationMain::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsCreationMain::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
////////////////////////////////////////////////////////////////////
// Previous face.
Modified: trunk/src/client/gui/pawschardescription.cpp
===================================================================
--- trunk/src/client/gui/pawschardescription.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawschardescription.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -99,7 +99,7 @@
}
}
-bool pawsCharDescription::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsCharDescription::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
switch ( widget->GetID() )
{
Modified: trunk/src/client/gui/pawscharparents.cpp
===================================================================
--- trunk/src/client/gui/pawscharparents.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawscharparents.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -187,7 +187,7 @@
}
-bool pawsCharParents::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsCharParents::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
csString name = widget->GetName();
Modified: trunk/src/client/gui/pawscharpick.cpp
===================================================================
--- trunk/src/client/gui/pawscharpick.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawscharpick.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -197,7 +197,7 @@
}
-void pawsCharacterPickerWindow::OnStringEntered(const char *name, int param,const char *value)
+void pawsCharacterPickerWindow::OnStringEntered(const char* /*name*/, int /*param*/, const char* value)
{
if (!value)
return;
@@ -224,7 +224,7 @@
}
}
-bool pawsCharacterPickerWindow::OnButtonPressed( int mouseButton, int keyModifer, pawsWidget* widget )
+bool pawsCharacterPickerWindow::OnButtonPressed(int /*mouseButton*/, int /*keyModifer*/, pawsWidget* widget)
{
if(!widget)
return false;
Modified: trunk/src/client/gui/pawschild.cpp
===================================================================
--- trunk/src/client/gui/pawschild.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawschild.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -86,7 +86,7 @@
}
-bool pawsChildhoodWindow::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsChildhoodWindow::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
if (!strcmp(widget->GetName(),"randomize"))
Modified: trunk/src/client/gui/pawsconfigautoexec.cpp
===================================================================
--- trunk/src/client/gui/pawsconfigautoexec.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsconfigautoexec.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -128,7 +128,7 @@
pawsWidget::Show();
}
-void pawsConfigAutoexec::OnListAction( pawsListBox* selected, int status )
+void pawsConfigAutoexec::OnListAction(pawsListBox* /*selected*/, int /*status*/)
{
dirty = true;
}
Modified: trunk/src/client/gui/pawsconfigautoexec.h
===================================================================
--- trunk/src/client/gui/pawsconfigautoexec.h 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsconfigautoexec.h 2010-12-29 21:53:26 UTC (rev 6628)
@@ -41,8 +41,13 @@
virtual void SetDefault();///< @see pawsConfigSectionWindow
virtual void Show(); ///< @see pawsConfigSectionWindow
- bool OnChange(pawsWidget *widget) { dirty = true; return true; } ///< @see pawsWidget
- virtual bool OnButtonPressed(int button, int keyModifier, pawsWidget *widget) { dirty = true; return true; } ///< @see pawsWidget
+ bool OnChange(pawsWidget* /*widget*/) { dirty = true; return true; } ///< @see pawsWidget
+ /// @see pawsWidget
+ virtual bool OnButtonPressed(int /*button*/, int /*keyModifier*/, pawsWidget* /*widget*/)
+ {
+ dirty = true;
+ return true;
+ }
virtual void OnListAction( pawsListBox* selected, int status ); ///< @see pawsWidget
private:
Modified: trunk/src/client/gui/pawsconfigcamera.cpp
===================================================================
--- trunk/src/client/gui/pawsconfigcamera.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsconfigcamera.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -263,7 +263,7 @@
}
-bool pawsConfigCamera::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsConfigCamera::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* /*widget*/)
{
dirty = true;
return true;
Modified: trunk/src/client/gui/pawsconfigchat.cpp
===================================================================
--- trunk/src/client/gui/pawsconfigchat.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsconfigchat.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -284,7 +284,7 @@
LoadConfig();
}
-bool pawsConfigChat::OnChange(pawsWidget * widget)
+bool pawsConfigChat::OnChange(pawsWidget* /*widget*/)
{
return true;
}
Modified: trunk/src/client/gui/pawsconfigchat.h
===================================================================
--- trunk/src/client/gui/pawsconfigchat.h 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsconfigchat.h 2010-12-29 21:53:26 UTC (rev 6628)
@@ -105,9 +105,8 @@
};
-CREATE_PAWS_FACTORY(pawsConfigChat)
+CREATE_PAWS_FACTORY(pawsConfigChat);
#endif
-
Modified: trunk/src/client/gui/pawsconfigchatbubbles.cpp
===================================================================
--- trunk/src/client/gui/pawsconfigchatbubbles.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsconfigchatbubbles.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -591,7 +591,7 @@
pawsWidget::Show();
}
-bool pawsConfigChatBubbles::OnMouseDown(int button, int modifiers, int x, int y )
+bool pawsConfigChatBubbles::OnMouseDown(int button, int /*modifiers*/, int /*x*/, int /*y*/)
{
if (button) {
if (button == csmbWheelUp)
@@ -603,13 +603,14 @@
return true;
}
-bool pawsConfigChatBubbles::OnScroll( int direction, pawsScrollBar* widget )
+bool pawsConfigChatBubbles::OnScroll(int /*direction*/, pawsScrollBar* /*widget*/)
{
drawFrame();
return true;
}
-void pawsConfigChatBubbles::OnListAction( pawsListBox* selected, int status )
+void pawsConfigChatBubbles::OnListAction(pawsListBox* /*selected*/, int /*status*/)
{
dirty = true;
}
+
Modified: trunk/src/client/gui/pawsconfigchatbubbles.h
===================================================================
--- trunk/src/client/gui/pawsconfigchatbubbles.h 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsconfigchatbubbles.h 2010-12-29 21:53:26 UTC (rev 6628)
@@ -73,8 +73,12 @@
virtual void Show();
// from pawsWidget
- bool OnChange(pawsWidget *widget) { dirty = true; return true; }
- virtual bool OnButtonPressed(int button, int keyModifier, pawsWidget *widget) { dirty = true; return true; }
+ bool OnChange(pawsWidget* /*widget*/) { dirty = true; return true; }
+ virtual bool OnButtonPressed(int /*button*/, int /*keyModifier*/, pawsWidget* /*widget*/)
+ {
+ dirty = true;
+ return true;
+ }
bool OnMouseDown(int button, int modifiers, int x, int y );
bool OnScroll( int direction, pawsScrollBar* widget );
virtual void OnListAction( pawsListBox* selected, int status );
Modified: trunk/src/client/gui/pawsconfigchattabcompletion.h
===================================================================
--- trunk/src/client/gui/pawsconfigchattabcompletion.h 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsconfigchattabcompletion.h 2010-12-29 21:53:26 UTC (rev 6628)
@@ -42,9 +42,13 @@
virtual void Show();
// from pawsWidget
- bool OnChange(pawsWidget *widget) { dirty = true; return true; }
- virtual bool OnButtonPressed(int button, int keyModifier, pawsWidget *widget) { dirty = true; return true; }
- virtual void OnListAction( pawsListBox* selected, int status ) {dirty = true;};
+ bool OnChange(pawsWidget* /*widget*/) { dirty = true; return true; }
+ virtual bool OnButtonPressed(int /*button*/, int /*keyModifier*/, pawsWidget* /*widget*/)
+ {
+ dirty = true;
+ return true;
+ }
+ virtual void OnListAction(pawsListBox* /*selected*/, int /*status*/) {dirty = true;};
private:
pawsChatWindow* chatWindow;
Modified: trunk/src/client/gui/pawsconfigdetails.cpp
===================================================================
--- trunk/src/client/gui/pawsconfigdetails.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsconfigdetails.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -113,7 +113,7 @@
return true;
}
-bool pawsConfigDetails::OnScroll( int scrollDirection, pawsScrollBar* widget )
+bool pawsConfigDetails::OnScroll(int /*scrollDirection*/, pawsScrollBar* widget)
{
csString valueName, scrollName;
pawsEditTextBox * value;
Modified: trunk/src/client/gui/pawsconfigentityinter.cpp
===================================================================
--- trunk/src/client/gui/pawsconfigentityinter.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsconfigentityinter.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -104,7 +104,7 @@
dirty = true;
}
-void pawsConfigEntityInteraction::OnListAction( pawsListBox* selected, int status )
+void pawsConfigEntityInteraction::OnListAction(pawsListBox* /*selected*/, int /*status*/)
{
dirty = true;
}
Modified: trunk/src/client/gui/pawsconfigentityinter.h
===================================================================
--- trunk/src/client/gui/pawsconfigentityinter.h 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsconfigentityinter.h 2010-12-29 21:53:26 UTC (rev 6628)
@@ -55,9 +55,8 @@
};
-CREATE_PAWS_FACTORY(pawsConfigEntityInteraction)
+CREATE_PAWS_FACTORY(pawsConfigEntityInteraction);
#endif
-
Modified: trunk/src/client/gui/pawsconfigentitylabels.cpp
===================================================================
--- trunk/src/client/gui/pawsconfigentitylabels.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsconfigentitylabels.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -107,9 +107,9 @@
return true;
}
-bool pawsConfigEntityLabels::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsConfigEntityLabels::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget )
{
- int widID = widget->GetID(); //widget identificator
+ int widID = widget->GetID(); //widget identificator
if ((widID >= ENTITY_TYPES_AMOUNT)&&(widID <= 100))
{
@@ -121,7 +121,7 @@
colorPicker = colorPicker->Create("Choose color",labelColors[widID],0,0xff,this,"colorPick",widID);
return true;
}
-void pawsConfigEntityLabels::OnColorEntered(const char *name,int param,int color)
+void pawsConfigEntityLabels::OnColorEntered(const char* /*name*/, int param, int color)
{
if (color != labelColors[param]) //param store button ID
{
Modified: trunk/src/client/gui/pawsconfigentitylabels.h
===================================================================
--- trunk/src/client/gui/pawsconfigentitylabels.h 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsconfigentitylabels.h 2010-12-29 21:53:26 UTC (rev 6628)
@@ -72,9 +72,8 @@
};
-CREATE_PAWS_FACTORY(pawsConfigEntityLabels)
+CREATE_PAWS_FACTORY(pawsConfigEntityLabels);
#endif
-
Modified: trunk/src/client/gui/pawsconfigkeys.cpp
===================================================================
--- trunk/src/client/gui/pawsconfigkeys.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsconfigkeys.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -316,7 +316,7 @@
textBox->SetText(trigger);
}
-bool pawsConfigKeys::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsConfigKeys::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
editedCmd = GetCommandOfButton(widget);
if (editedCmd.IsEmpty())
@@ -388,7 +388,7 @@
PawsManager::GetSingleton().SetModalWidget(this);
}
-bool pawsFingeringWindow::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsFingeringWindow::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
if (!strcmp(widget->GetName(),"CancelButton"))
{
@@ -452,7 +452,7 @@
buttonTextBox->SetText(str);
}
-bool pawsFingeringWindow::OnKeyDown(utf32_char keyCode, utf32_char keyChar, int modifiers)
+bool pawsFingeringWindow::OnKeyDown(utf32_char keyCode, utf32_char /*keyChar*/, int modifiers)
{
/* Ignore autorepeats.
* You can get odd results like ctrl+Lctrl if you accept them here,
@@ -468,7 +468,7 @@
return true;
}
-bool pawsFingeringWindow::OnMouseDown( int mousebtn, int modifiers, int x, int y )
+bool pawsFingeringWindow::OnMouseDown(int mousebtn, int modifiers, int /*x*/, int /*y*/)
{
device = psControl::MOUSE;
button = mousebtn;
Modified: trunk/src/client/gui/pawsconfigkeys.h
===================================================================
--- trunk/src/client/gui/pawsconfigkeys.h 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsconfigkeys.h 2010-12-29 21:53:26 UTC (rev 6628)
@@ -111,7 +111,7 @@
-CREATE_PAWS_FACTORY(pawsConfigKeys)
+CREATE_PAWS_FACTORY(pawsConfigKeys);
@@ -148,7 +148,7 @@
/// Sets widget that should be notified the result
void SetNotify( pawsFingeringReceiver* widget );
- virtual const bool GetFocusOverridesControls() const { return true; }
+ virtual bool GetFocusOverridesControls() const { return true; }
private:
@@ -167,7 +167,7 @@
};
-CREATE_PAWS_FACTORY(pawsFingeringWindow)
+CREATE_PAWS_FACTORY(pawsFingeringWindow);
+
#endif
-
Modified: trunk/src/client/gui/pawsconfigmarriage.h
===================================================================
--- trunk/src/client/gui/pawsconfigmarriage.h 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsconfigmarriage.h 2010-12-29 21:53:26 UTC (rev 6628)
@@ -81,6 +81,7 @@
pawsRadioButtonGroup * confirmRadioGroup;
};
-CREATE_PAWS_FACTORY(pawsConfigMarriage)
+CREATE_PAWS_FACTORY(pawsConfigMarriage);
#endif
+
Modified: trunk/src/client/gui/pawsconfigmouse.cpp
===================================================================
--- trunk/src/client/gui/pawsconfigmouse.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsconfigmouse.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -355,7 +355,7 @@
return true;
}
-void pawsConfigMouse::HandleEditedAction( csString& editedAction )
+void pawsConfigMouse::HandleEditedAction( csString& /*editedAction*/ )
{
/*
if ( editedAction == "InvertMouse" )
Modified: trunk/src/client/gui/pawsconfigpvp.h
===================================================================
--- trunk/src/client/gui/pawsconfigpvp.h 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsconfigpvp.h 2010-12-29 21:53:26 UTC (rev 6628)
@@ -54,9 +54,8 @@
};
-CREATE_PAWS_FACTORY(pawsConfigPvP)
+CREATE_PAWS_FACTORY(pawsConfigPvP);
#endif
-
Modified: trunk/src/client/gui/pawsconfigshadows.cpp
===================================================================
--- trunk/src/client/gui/pawsconfigshadows.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsconfigshadows.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -120,7 +120,8 @@
pawsWidget::Show();
}
-void pawsConfigShadows::OnListAction( pawsListBox* selected, int status )
+void pawsConfigShadows::OnListAction(pawsListBox* /*selected*/, int /*status*/)
{
dirty = true;
}
+
Modified: trunk/src/client/gui/pawsconfigshadows.h
===================================================================
--- trunk/src/client/gui/pawsconfigshadows.h 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsconfigshadows.h 2010-12-29 21:53:26 UTC (rev 6628)
@@ -30,11 +30,11 @@
class pawsConfigShadows : public pawsConfigSectionWindow
{
public:
- pawsConfigShadows();
- void drawFrame();
+ pawsConfigShadows();
+ void drawFrame();
//from pawsWidget:
- virtual bool PostSetup();
+ virtual bool PostSetup();
// from pawsConfigSectionWindow:
virtual bool Initialize();
@@ -43,15 +43,19 @@
virtual void SetDefault();
virtual void Show();
- // from pawsWidget
- bool OnChange(pawsWidget *widget) { dirty = true; return true; }
- virtual bool OnButtonPressed(int button, int keyModifier, pawsWidget *widget) { dirty = true; return true; }
- virtual void OnListAction( pawsListBox* selected, int status );
+ // from pawsWidget
+ bool OnChange(pawsWidget* /*widget*/) { dirty = true; return true; }
+ virtual bool OnButtonPressed(int /*button*/, int /*keyModifier*/, pawsWidget* /*widget*/)
+ {
+ dirty = true;
+ return true;
+ }
+ virtual void OnListAction( pawsListBox* selected, int status );
private:
- psShadowManager *shadowManager;
+ psShadowManager *shadowManager;
- pawsCheckBox *enabled;
+ pawsCheckBox *enabled;
};
Modified: trunk/src/client/gui/pawsconfigsound.cpp
===================================================================
--- trunk/src/client/gui/pawsconfigsound.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsconfigsound.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -231,7 +231,7 @@
LoadConfig();
}
-bool pawsConfigSound::OnScroll(int scrollDir,pawsScrollBar* wdg)
+bool pawsConfigSound::OnScroll(int /*scrollDir*/, pawsScrollBar* wdg)
{
dirty = true;
if(wdg == generalVol && loaded)
@@ -285,7 +285,7 @@
return true;
}
-bool pawsConfigSound::OnButtonPressed(int button, int mod, pawsWidget* wdg)
+bool pawsConfigSound::OnButtonPressed(int /*button*/, int /*mod*/, pawsWidget* wdg)
{
dirty = true;
@@ -334,7 +334,7 @@
return true;
}
-void pawsConfigSound::OnListAction(pawsListBox* selected, int status)
+void pawsConfigSound::OnListAction(pawsListBox* /*selected*/, int /*status*/)
{
pawsComboBox* soundlocation = (pawsComboBox*)FindWidget("soundLocation");
csString _selected = soundlocation->GetSelectedRowString();
Modified: trunk/src/client/gui/pawsconfigsound.h
===================================================================
--- trunk/src/client/gui/pawsconfigsound.h 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsconfigsound.h 2010-12-29 21:53:26 UTC (rev 6628)
@@ -86,10 +86,8 @@
};
-CREATE_PAWS_FACTORY(pawsConfigSound)
+CREATE_PAWS_FACTORY(pawsConfigSound);
#endif
-
-
Modified: trunk/src/client/gui/pawsconfigwindow.cpp
===================================================================
--- trunk/src/client/gui/pawsconfigwindow.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsconfigwindow.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -95,7 +95,7 @@
}
-bool pawsConfigWindow::OnButtonReleased( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsConfigWindow::OnButtonReleased(int /*mouseButton*/, int keyModifier, pawsWidget* widget)
{
if (widget == okButton)
Modified: trunk/src/client/gui/pawsconfigwindow.h
===================================================================
--- trunk/src/client/gui/pawsconfigwindow.h 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsconfigwindow.h 2010-12-29 21:53:26 UTC (rev 6628)
@@ -70,13 +70,13 @@
// sets content of dialog according to default configuration
protected:
csString sectionName;
- // Says what section of configuration is being configured by this window.
- // A pawsConfigSectionWindow could be used by more than one section
- // and 'sectionName' tells which section it is.
+ // Says what section of configuration is being configured by this window.
+ // A pawsConfigSectionWindow could be used by more than one section
+ // and 'sectionName' tells which section it is.
bool dirty;
- // Is data in configuration window different from data in configuration file
- // i.e. do we need to save it ?
- // Should be set to true when user changes something, and to false when the data is loaded/saved.
+ // Is data in configuration window different from data in configuration file
+ // i.e. do we need to save it ?
+ // Should be set to true when user changes something, and to false when the data is loaded/saved.
};
@@ -129,9 +129,8 @@
};
-CREATE_PAWS_FACTORY(pawsConfigWindow)
+CREATE_PAWS_FACTORY(pawsConfigWindow);
#endif
-
Modified: trunk/src/client/gui/pawscontainerdescwindow.cpp
===================================================================
--- trunk/src/client/gui/pawscontainerdescwindow.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawscontainerdescwindow.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -220,7 +220,7 @@
}
-bool pawsContainerDescWindow::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsContainerDescWindow::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
csString widgetName(widget->GetName());
Modified: trunk/src/client/gui/pawscontrolwindow.cpp
===================================================================
--- trunk/src/client/gui/pawscontrolwindow.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawscontrolwindow.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -183,7 +183,7 @@
return true;
}
-bool pawsControlWindow::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* reporter )
+bool pawsControlWindow::OnButtonPressed(int mouseButton, int /*keyModifier*/, pawsWidget* reporter)
{
if(reporter->GetID() == CONTROL_MINIDOWN || reporter->GetID() == CONTROL_MINIUP)
{
Modified: trunk/src/client/gui/pawscraft.cpp
===================================================================
--- trunk/src/client/gui/pawscraft.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawscraft.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -116,7 +116,7 @@
}
*/
-bool pawsCraftWindow::OnSelected(pawsWidget *widget)
+bool pawsCraftWindow::OnSelected(pawsWidget* /*widget*/)
{
/*
pawsTreeNode* node = static_cast<pawsTreeNode*> (widget);
Modified: trunk/src/client/gui/pawscraftcancelwindow.cpp
===================================================================
--- trunk/src/client/gui/pawscraftcancelwindow.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawscraftcancelwindow.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -79,12 +79,12 @@
}
-bool pawsCraftCancelWindow::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsCraftCancelWindow::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
if (!strcmp(widget->GetName(),"Cancel"))
{
- Cancel();
- return true;
+ Cancel();
+ return true;
}
return false;
}
Modified: trunk/src/client/gui/pawscreditswindow.cpp
===================================================================
--- trunk/src/client/gui/pawscreditswindow.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawscreditswindow.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -353,7 +353,7 @@
}
}
-bool pawsCreditsWindow::OnButtonPressed(int button, int keyModifier, pawsWidget *widget)
+bool pawsCreditsWindow::OnButtonPressed(int /*button*/, int /*keyModifier*/, pawsWidget* widget)
{
if (widget->GetID() == 100) //Ok button
{
Modified: trunk/src/client/gui/pawsdetailwindow.cpp
===================================================================
--- trunk/src/client/gui/pawsdetailwindow.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsdetailwindow.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -264,7 +264,7 @@
}
}
-bool pawsDetailWindow::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsDetailWindow::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
return SelectTab(widget);
}
Modified: trunk/src/client/gui/pawsexchangewindow.cpp
===================================================================
--- trunk/src/client/gui/pawsexchangewindow.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsexchangewindow.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -333,7 +333,7 @@
Hide();
}
-bool pawsExchangeWindow::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsExchangeWindow::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
csString widgetName(widget->GetName());
Modified: trunk/src/client/gui/pawsglyphwindow.cpp
===================================================================
--- trunk/src/client/gui/pawsglyphwindow.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsglyphwindow.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -259,7 +259,7 @@
return dynamic_cast <pawsGlyphSlot*> (way->GetRow(way->GetRowCount()-1)->GetColumn(0));
}
-bool pawsGlyphWindow::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsGlyphWindow::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
pawsWidget *dndWidget = PawsManager::GetSingleton().GetDragDropWidget();
pawsGlyphSlot *floatingSlot = dynamic_cast <pawsGlyphSlot*> (dndWidget);
Modified: trunk/src/client/gui/pawsgmaction.cpp
===================================================================
--- trunk/src/client/gui/pawsgmaction.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsgmaction.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -87,7 +87,7 @@
return true;
}
-bool pawsGMActionWindow::OnButtonPressed(int button,int keyModifier,pawsWidget* widget)
+bool pawsGMActionWindow::OnButtonPressed(int /*button*/, int /*keyModifier*/, pawsWidget* widget)
{
switch ( widget->GetID() )
{
@@ -145,7 +145,7 @@
return true;
}
-bool pawsGMActionWindow::OnChange( pawsWidget * widget )
+bool pawsGMActionWindow::OnChange(pawsWidget* /*widget*/)
{
isDirty = true;
return true;
Modified: trunk/src/client/gui/pawsgmgui.cpp
===================================================================
--- trunk/src/client/gui/pawsgmgui.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsgmgui.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -156,7 +156,7 @@
QueryServer();
}
-const char* pawsGmGUIWindow::HandleCommand( const char* cmd )
+const char* pawsGmGUIWindow::HandleCommand(const char* /*cmd*/)
{
return NULL;
}
@@ -254,7 +254,7 @@
}
}
-bool pawsGmGUIWindow::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsGmGUIWindow::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
const char* errorMessage;
csString cmd;
Modified: trunk/src/client/gui/pawsgmspawn.cpp
===================================================================
--- trunk/src/client/gui/pawsgmspawn.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsgmspawn.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -262,7 +262,7 @@
return true;
}
-bool pawsGMSpawnWindow::OnButtonPressed(int button,int keyModifier,pawsWidget* widget)
+bool pawsGMSpawnWindow::OnButtonPressed(int /*button*/, int /*keyModifier*/, pawsWidget* widget)
{
if(widget == cbLockable)
{
Modified: trunk/src/client/gui/pawsgroupwindow.cpp
===================================================================
--- trunk/src/client/gui/pawsgroupwindow.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsgroupwindow.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -110,7 +110,7 @@
}
}
-void pawsGroupWindow::HandleGroup( csString& group )
+void pawsGroupWindow::HandleGroup(csString& /*group*/)
{
Show();
}
@@ -226,7 +226,7 @@
pawsWidget::Draw();
}
-void pawsGroupWindow::OnStringEntered(const char *name,int param,const char *value)
+void pawsGroupWindow::OnStringEntered(const char* name, int /*param*/, const char* value)
{
if (value && strlen(value))
{
Modified: trunk/src/client/gui/pawsguildwindow.cpp
===================================================================
--- trunk/src/client/gui/pawsguildwindow.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsguildwindow.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -635,7 +635,7 @@
}
}
-bool pawsGuildWindow::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsGuildWindow::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
guildMemberInfo * member;
@@ -1161,7 +1161,7 @@
}
}
-void pawsGuildWindow::OnItemChosen(const char *name,int param,int itemNum, const csString & itemText)
+void pawsGuildWindow::OnItemChosen(const char* /*name*/, int param, int itemNum, const csString& /*itemText*/)
{
guildMemberInfo * member;
Modified: trunk/src/client/gui/pawsignore.cpp
===================================================================
--- trunk/src/client/gui/pawsignore.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsignore.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -68,7 +68,7 @@
-bool pawsIgnoreWindow::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsIgnoreWindow::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
switch ( widget->GetID() )
@@ -221,7 +221,7 @@
return result;
}
-void pawsIgnoreWindow::OnStringEntered(const char *name,int param,const char *value)
+void pawsIgnoreWindow::OnStringEntered(const char* name, int /*param*/, const char* value)
{
if (!value || !strlen(value))
return;
Modified: trunk/src/client/gui/pawsilluminationwindow.cpp
===================================================================
--- trunk/src/client/gui/pawsilluminationwindow.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsilluminationwindow.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -537,7 +537,7 @@
}
}
-void pawsSketchWindow::OnStringEntered(const char *name,int param,const char *value)
+void pawsSketchWindow::OnStringEntered(const char* /*name*/, int /*param*/, const char* value)
{
stringPending = false;
@@ -583,7 +583,7 @@
}
}
-void pawsSketchWindow::OnColorEntered(const char *name,int param,int color)
+void pawsSketchWindow::OnColorEntered(const char* /*name*/, int param, int color)
{
colorPending = false;
Modified: trunk/src/client/gui/pawsilluminationwindow.h
===================================================================
--- trunk/src/client/gui/pawsilluminationwindow.h 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsilluminationwindow.h 2010-12-29 21:53:26 UTC (rev 6628)
@@ -275,7 +275,7 @@
void DrawColorWidgetText(const char *text, int x, int y, int color);
bool IsMouseDown() { return mouseDown; }
- virtual const bool GetFocusOverridesControls() const { return true; }
+ virtual bool GetFocusOverridesControls() const { return true; }
};
CREATE_PAWS_FACTORY( pawsSketchWindow );
Modified: trunk/src/client/gui/pawsinfowindow.cpp
===================================================================
--- trunk/src/client/gui/pawsinfowindow.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsinfowindow.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -148,7 +148,7 @@
return true;
}
-bool pawsInfoWindow::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* reporter )
+bool pawsInfoWindow::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* reporter)
{
csString cmd;
Modified: trunk/src/client/gui/pawsinteractwindow.cpp
===================================================================
--- trunk/src/client/gui/pawsinteractwindow.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsinteractwindow.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -208,7 +208,7 @@
genericCommand = guimsg.genericCommand;
}
-bool pawsInteractWindow::OnMouseDown(int button, int modifiers,int x,int y)
+bool pawsInteractWindow::OnMouseDown(int /*button*/, int /*modifiers*/, int /*x*/, int /*y*/)
{
Hide();
//PawsManager::GetSingleton().SetCurrentFocusedWidget( NULL );
@@ -216,7 +216,7 @@
}
-bool pawsInteractWindow::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsInteractWindow::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
switch ( widget->GetID() )
{
@@ -458,7 +458,7 @@
}
-void pawsInteractWindow::OnStringEntered(const char *name,int param,const char *value)
+void pawsInteractWindow::OnStringEntered(const char* name, int /*param*/, const char* value)
{
if ( value && strlen(value) )
{
Modified: trunk/src/client/gui/pawsinventorydollview.cpp
===================================================================
--- trunk/src/client/gui/pawsinventorydollview.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsinventorydollview.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -37,7 +37,7 @@
*
***********************************************************************/
-bool pawsInventoryDollView::OnMouseDown( int button, int modifiers, int x, int y )
+bool pawsInventoryDollView::OnMouseDown(int /*button*/, int /*modifiers*/, int /*x*/, int /*y*/)
{
// Make sure we actually have something
if ( !psengine->GetSlotManager()->IsDragging() )
@@ -62,3 +62,4 @@
return true;
}
+
Modified: trunk/src/client/gui/pawsitemdescriptionwindow.cpp
===================================================================
--- trunk/src/client/gui/pawsitemdescriptionwindow.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsitemdescriptionwindow.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -80,7 +80,7 @@
}
-bool pawsItemDescriptionWindow::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsItemDescriptionWindow::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
csString widgetName(widget->GetName());
if ( widgetName == "StudyButton" )
Modified: trunk/src/client/gui/pawslife.cpp
===================================================================
--- trunk/src/client/gui/pawslife.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawslife.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -68,7 +68,7 @@
}
-bool pawsLifeEventWindow::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsLifeEventWindow::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
if ( strcmp(widget->GetName(),"randomize") == 0 )
{
Modified: trunk/src/client/gui/pawsloginwindow.cpp
===================================================================
--- trunk/src/client/gui/pawsloginwindow.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsloginwindow.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -238,7 +238,7 @@
return true;
}
-bool pawsLoginWindow::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsLoginWindow::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
switch( widget->GetID() )
{
@@ -484,7 +484,7 @@
return true;
}
-void pawsLoginWindow::OnListAction( pawsListBox* selected, int status )
+void pawsLoginWindow::OnListAction(pawsListBox* /*selected*/, int /*status*/)
{
if (listBox->GetSelectedRowNum() == -1)
return;
Modified: trunk/src/client/gui/pawslootwindow.cpp
===================================================================
--- trunk/src/client/gui/pawslootwindow.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawslootwindow.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -77,9 +77,9 @@
// Command and Message Handling
//////////////////////////////////////////////////////////////////////
-const char* pawsLootWindow::HandleCommand( const char* cmd )
+const char* pawsLootWindow::HandleCommand(const char* /*cmd*/)
{
- /***
+ /*
char* buff = csStrNew(cmd);
// Check which command was invoked:
@@ -91,7 +91,7 @@
// Query the server for messages:
QueryServer();
}
- ***/
+ */
return NULL;
}
@@ -164,7 +164,7 @@
}
}
-bool pawsLootWindow::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsLootWindow::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
int button = widget->GetID();
Modified: trunk/src/client/gui/pawsmerchantwindow.cpp
===================================================================
--- trunk/src/client/gui/pawsmerchantwindow.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsmerchantwindow.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -431,7 +431,7 @@
}
-bool pawsMerchantWindow::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsMerchantWindow::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
switch ( widget->GetID() )
{
@@ -517,7 +517,7 @@
Error2("%s", commandData);
}
-void pawsMerchantWindow::OnNumberEntered(const char *name,int param,int value)
+void pawsMerchantWindow::OnNumberEntered(const char* /*name*/, int /*param*/, int value)
{
if (value == -1)
return;
Modified: trunk/src/client/gui/pawsmoney.cpp
===================================================================
--- trunk/src/client/gui/pawsmoney.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsmoney.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -260,7 +260,7 @@
}
-void pawsMoney::OnUpdateData(const char *dataname,PAWSData& value)
+void pawsMoney::OnUpdateData(const char* /*dataname*/, PAWSData& value)
{
psMoney money( value.GetStr() );
Set( money );
Modified: trunk/src/client/gui/pawsmoney.h
===================================================================
--- trunk/src/client/gui/pawsmoney.h 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsmoney.h 2010-12-29 21:53:26 UTC (rev 6628)
@@ -84,7 +84,7 @@
void RecalculateAmount();
};
-CREATE_PAWS_FACTORY(pawsMoney)
+CREATE_PAWS_FACTORY(pawsMoney);
+#endif
-#endif
Modified: trunk/src/client/gui/pawsnpcdialog.cpp
===================================================================
--- trunk/src/client/gui/pawsnpcdialog.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsnpcdialog.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -121,34 +121,35 @@
void pawsNpcDialogWindow::AdjustForPromptWindow()
{
- csString str;
+ csString str;
- for (size_t i=0; i<responseList->GetRowCount(); i++)
- {
- str = responseList->GetTextCellValue(i,0);
- size_t where = str.Find("?=");
- if (where != SIZET_NOT_FOUND) // we have a prompt choice
- {
- pawsTextBox *hidden = (pawsTextBox *)responseList->GetRow(i)->GetColumn(1);
- if (where != SIZET_NOT_FOUND)
- {
- str.DeleteAt(where,1); // take out the ?
- hidden->SetText(str.GetData() + where); // Save the question prompt, starting with the =, in the hidden column
- str.DeleteAt(where,1); // take out the =
+ for (size_t i=0; i<responseList->GetRowCount(); i++)
+ {
+ str = responseList->GetTextCellValue(i,0);
+ size_t where = str.Find("?=");
+ if (where != SIZET_NOT_FOUND) // we have a prompt choice
+ {
+ pawsTextBox *hidden = (pawsTextBox *)responseList->GetRow(i)->GetColumn(1);
+ if (where != SIZET_NOT_FOUND)
+ {
+ str.DeleteAt(where,1); // take out the ?
+ // Save the question prompt, starting with the =, in the hidden column
+ hidden->SetText(str.GetData() + where);
+ str.DeleteAt(where,1); // take out the =
- // now change the visible menu choice to something better
- pawsTextBox *prompt = (pawsTextBox *)responseList->GetRow(i)->GetColumn(0);
+ // now change the visible menu choice to something better
+ pawsTextBox *prompt = (pawsTextBox *)responseList->GetRow(i)->GetColumn(0);
- csString menuPrompt(str);
- menuPrompt.Insert(where,"<Answer ");
- menuPrompt.Append('>');
- prompt->SetText(menuPrompt);
- }
- }
- }
+ csString menuPrompt(str);
+ menuPrompt.Insert(where,"<Answer ");
+ menuPrompt.Append('>');
+ prompt->SetText(menuPrompt);
+ }
+ }
+ }
}
-void pawsNpcDialogWindow::OnStringEntered(const char *name,int param,const char *value)
+void pawsNpcDialogWindow::OnStringEntered(const char* name, int /*param*/, const char* value)
{
//The user cancelled the operation. So show again the last window and do nothing else.
if(value == NULL)
Modified: trunk/src/client/gui/pawspath.cpp
===================================================================
--- trunk/src/client/gui/pawspath.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawspath.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -61,7 +61,7 @@
return true;
}
-bool pawsPathWindow::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsPathWindow::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
int id = widget->GetID();
if (id <= PATH_0 + 6 && id > PATH_0)
Modified: trunk/src/client/gui/pawspetitiongmwindow.cpp
===================================================================
--- trunk/src/client/gui/pawspetitiongmwindow.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawspetitiongmwindow.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -344,7 +344,7 @@
}
}
-bool pawsPetitionGMWindow::OnButtonReleased( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsPetitionGMWindow::OnButtonReleased(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
// We know that the calling widget is a button.
int button = widget->GetID();
@@ -582,7 +582,7 @@
return true;
}
-void pawsPetitionGMWindow::OnStringEntered(const char *name,int param,const char *value)
+void pawsPetitionGMWindow::OnStringEntered(const char* /*name*/, int /*param*/, const char* value)
{
if (value && strlen(value))
CloseCurrPetition(value);
@@ -702,7 +702,7 @@
}
-void pawsPetitionGMWindow::OnListAction( pawsListBox* selected, int status )
+void pawsPetitionGMWindow::OnListAction(pawsListBox* /*selected*/, int status)
{
if (status == LISTBOX_HIGHLIGHTED)
{
Modified: trunk/src/client/gui/pawspetitionwindow.cpp
===================================================================
--- trunk/src/client/gui/pawspetitionwindow.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawspetitionwindow.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -90,7 +90,7 @@
QueryServer();
}
-const char* pawsPetitionWindow::HandleCommand( const char* cmd )
+const char* pawsPetitionWindow::HandleCommand(const char* /*cmd*/)
{
return NULL;
}
@@ -175,7 +175,7 @@
pawsControlledWindow::Hide();
}
-bool pawsPetitionWindow::OnButtonReleased(int mouseButton, int keyModifier, pawsWidget* widget)
+bool pawsPetitionWindow::OnButtonReleased(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
// We know that the calling widget is a button.
int button = widget->GetID();
@@ -367,7 +367,7 @@
}
}
-void pawsPetitionWindow::OnListAction( pawsListBox* selected, int status )
+void pawsPetitionWindow::OnListAction(pawsListBox* /*selected*/, int status)
{
if (status == LISTBOX_HIGHLIGHTED)
{
@@ -388,7 +388,7 @@
}
}
-void pawsPetitionWindow::OnStringEntered(const char *name,int param,const char *value)
+void pawsPetitionWindow::OnStringEntered(const char* /*name*/, int /*param*/, const char* value)
{
if (!value)
return; // Cancel was clicked
Modified: trunk/src/client/gui/pawspetstatwindow.cpp
===================================================================
--- trunk/src/client/gui/pawspetstatwindow.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawspetstatwindow.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -186,7 +186,7 @@
selectedSkill.Clear();
}
-bool pawsPetStatWindow::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsPetStatWindow::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
switch ( widget->GetID() )
{
Modified: trunk/src/client/gui/pawsquestrewardwindow.cpp
===================================================================
--- trunk/src/client/gui/pawsquestrewardwindow.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsquestrewardwindow.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -67,7 +67,7 @@
}
-const char* pawsQuestRewardWindow::HandleCommand( const char* cmd )
+const char* pawsQuestRewardWindow::HandleCommand(const char* /*cmd*/)
{
return NULL;
}
@@ -84,7 +84,7 @@
}
-bool pawsQuestRewardWindow::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsQuestRewardWindow::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
switch( widget->GetID() )
{
Modified: trunk/src/client/gui/pawsquestwindow.cpp
===================================================================
--- trunk/src/client/gui/pawsquestwindow.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsquestwindow.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -166,7 +166,7 @@
// Command and Message Handling
//////////////////////////////////////////////////////////////////////
-const char* pawsQuestListWindow::HandleCommand( const char* cmd )
+const char* pawsQuestListWindow::HandleCommand(const char* /*cmd*/)
{
return NULL;
}
@@ -300,7 +300,7 @@
}
}
-bool pawsQuestListWindow::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsQuestListWindow::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
// We know that the calling widget is a button.
int button = widget->GetID();
@@ -449,7 +449,7 @@
return true;
}
-void pawsQuestListWindow::OnStringEntered(const char *name,int param,const char *value)
+void pawsQuestListWindow::OnStringEntered(const char* /*name*/, int /*param*/, const char* value)
{
if (!value)
return; // Cancel was clicked
@@ -460,7 +460,7 @@
RequestGMEventData(questID); //refreshes the informations (just disables the evaluate button in practice for now)
}
-void pawsQuestListWindow::OnNumberEntered(const char *name,int param, int value)
+void pawsQuestListWindow::OnNumberEntered(const char* /*name*/, int /*param*/, int value)
{
if (value == -1) //not confirmed action
return;
@@ -503,7 +503,7 @@
msgqueue->SendMessage(info.msg);
}
-void pawsQuestListWindow::OnListAction( pawsListBox* selected, int status )
+void pawsQuestListWindow::OnListAction(pawsListBox* selected, int /*status*/)
{
int previousQuestID = questID;
size_t numOfQuests;
Modified: trunk/src/client/gui/pawsquitinfobox.cpp
===================================================================
--- trunk/src/client/gui/pawsquitinfobox.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsquitinfobox.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -84,7 +84,7 @@
this->MoveTo( (graphics2D->GetWidth()-512)/2 , (graphics2D->GetHeight()-256)/2);
}
-bool pawsQuitInfoBox::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsQuitInfoBox::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
if (widget->GetID() == 100)
{
Modified: trunk/src/client/gui/pawsskillwindow.cpp
===================================================================
--- trunk/src/client/gui/pawsskillwindow.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsskillwindow.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -331,7 +331,7 @@
unsortedSkills.DeleteAll();
}
-bool pawsSkillWindow::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsSkillWindow::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
switch ( widget->GetID() )
{
@@ -603,7 +603,7 @@
}
}
-void pawsSkillWindow::OnNumberEntered(const char *name,int param,int number)
+void pawsSkillWindow::OnNumberEntered(const char* /*name*/, int /*param*/, int number)
{
csString commandData;
Modified: trunk/src/client/gui/pawssmallinventory.cpp
===================================================================
--- trunk/src/client/gui/pawssmallinventory.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawssmallinventory.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -115,7 +115,8 @@
return pawsWidget::OnMouseDown( button, keyModifier, x, y );
}
-bool pawsSmallInventoryWindow::OnButtonPressed( int mouseButton, int keyModifer, pawsWidget* widget )
+bool pawsSmallInventoryWindow::OnButtonPressed(int /*mouseButton*/, int /*keyModifer*/, pawsWidget* /*widget*/)
{
return true;
}
+
Modified: trunk/src/client/gui/pawsspellbookwindow.cpp
===================================================================
--- trunk/src/client/gui/pawsspellbookwindow.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsspellbookwindow.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -81,7 +81,7 @@
}
}
-bool pawsSpellBookWindow::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsSpellBookWindow::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
if (!strcmp(widget->GetName(),"Combine"))
{
Modified: trunk/src/client/gui/pawsspellcancelwindow.cpp
===================================================================
--- trunk/src/client/gui/pawsspellcancelwindow.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsspellcancelwindow.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -79,12 +79,12 @@
}
-bool pawsSpellCancelWindow::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsSpellCancelWindow::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
if (!strcmp(widget->GetName(),"Cancel"))
{
- Cancel();
- return true;
+ Cancel();
+ return true;
}
return false;
}
Modified: trunk/src/client/gui/pawsstoragewindow.cpp
===================================================================
--- trunk/src/client/gui/pawsstoragewindow.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawsstoragewindow.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -428,7 +428,7 @@
}
-bool pawsStorageWindow::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsStorageWindow::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
switch ( widget->GetID() )
{
@@ -514,7 +514,7 @@
Error2("%s", commandData);
}
-void pawsStorageWindow::OnNumberEntered(const char *name,int param,int value)
+void pawsStorageWindow::OnNumberEntered(const char* /*name*/, int /*param*/, int value)
{
if (value == -1)
return;
Modified: trunk/src/client/gui/pawssummary.cpp
===================================================================
--- trunk/src/client/gui/pawssummary.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawssummary.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -263,7 +263,7 @@
CheckLoadStatus();
}
-bool pawsSummaryWindow::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsSummaryWindow::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
if(!widget)
return false;
Modified: trunk/src/client/gui/pawstutorialwindow.cpp
===================================================================
--- trunk/src/client/gui/pawstutorialwindow.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawstutorialwindow.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -123,7 +123,7 @@
}
}
-bool pawsTutorialNotifyWindow::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsTutorialNotifyWindow::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* /*widget*/)
{
// This window only has the one button on it, so any call to this
// is from clicking that button and we know what to do.
@@ -132,14 +132,6 @@
return true;
}
-
-
-
-
-
-
-
-
pawsTutorialWindow::pawsTutorialWindow()
{
}
Modified: trunk/src/client/gui/pawswritingwindow.cpp
===================================================================
--- trunk/src/client/gui/pawswritingwindow.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/pawswritingwindow.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -102,7 +102,7 @@
//When we close the window, we should send some sort of save or cancel message in case server
//is tracking current writing task. Right now it doesn't.
-bool pawsWritingWindow::OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget )
+bool pawsWritingWindow::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
switch(widget->GetID())
{
@@ -151,7 +151,7 @@
return false;
}
-void pawsWritingWindow::OnStringEntered(const char *name, int param,const char *value)
+void pawsWritingWindow::OnStringEntered(const char* /*name*/, int /*param*/, const char* value)
{
const unsigned int MAX_BOOK_FILE_SIZE = 60000;
Modified: trunk/src/client/gui/psmainwidget.cpp
===================================================================
--- trunk/src/client/gui/psmainwidget.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/psmainwidget.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -444,7 +444,7 @@
return false;
}
-bool psMainWidget::OnMouseUp( int button, int keyModifier, int x, int y )
+bool psMainWidget::OnMouseUp(int /*button*/, int /*keyModifier*/, int /*x*/, int /*y*/)
{
return false;
}
Modified: trunk/src/client/gui/psmainwidget.h
===================================================================
--- trunk/src/client/gui/psmainwidget.h 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/psmainwidget.h 2010-12-29 21:53:26 UTC (rev 6628)
@@ -105,20 +105,20 @@
void HandleMessage( MsgEntry* message );
/// Handles commands (unused for now)
- const char* HandleCommand(const char* cmd) { return NULL; };
+ const char* HandleCommand(const char* /*cmd*/) { return NULL; };
- /**
- * Print a message on screen
- *
- * This function is called when a system message is received. To print a message on screen
- * fire a system message of type MSG_ERROR(Red), MSG_OK(Green), MSG_RESULT(Yellow) or MSG_ACK(Blue)
- *
- * @param text The text to be printed on screen. Have to be at lest 2 chars or it will be ignored.
- * @param color The color to be used on the text.
- * @param ymod Where on screen should the message be displayed. Default in center.
- *
- */
- void PrintOnScreen(const char* text, int color, float ymod = 0.50f);
+ /**
+ * Print a message on screen
+ *
+ * This function is called when a system message is received. To print a message on screen
+ * fire a system message of type MSG_ERROR(Red), MSG_OK(Green), MSG_RESULT(Yellow) or MSG_ACK(Blue)
+ *
+ * @param text The text to be printed on screen. Have to be at lest 2 chars or it will be ignored.
+ * @param color The color to be used on the text.
+ * @param ymod Where on screen should the message be displayed. Default in center.
+ *
+ */
+ void PrintOnScreen(const char* text, int color, float ymod = 0.50f);
public:
void ClearFadingText();
Modified: trunk/src/client/gui/shortcutwindow.cpp
===================================================================
--- trunk/src/client/gui/shortcutwindow.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/gui/shortcutwindow.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -446,8 +446,8 @@
}
-bool pawsShortcutWindow::OnScroll( int direction, pawsScrollBar* widget )
-{
+bool pawsShortcutWindow::OnScroll(int /*direction*/, pawsScrollBar* /*widget*/)
+{
UpdateMatrix();
return true;
}
Modified: trunk/src/client/guihandler.h
===================================================================
--- trunk/src/client/guihandler.h 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/guihandler.h 2010-12-29 21:53:26 UTC (rev 6628)
@@ -53,7 +53,7 @@
GUIHandler();
void HandleMessage( MsgEntry* me );
- const char* HandleCommand( const char* cmd ) { return NULL; }
+ const char* HandleCommand( const char* /*cmd*/ ) { return NULL; }
psInventoryCache* GetInventoryCache(void) { return inventoryCache; }
Modified: trunk/src/client/modehandler.cpp
===================================================================
--- trunk/src/client/modehandler.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/modehandler.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -87,7 +87,7 @@
{
}
-bool psPortalCallback::Traverse(iPortal* portal,iBase* base)
+bool psPortalCallback::Traverse(iPortal* portal, iBase* /*base*/)
{
// Refresh the weather
psengine->GetModeHandler()->CreatePortalWeather(portal, 0);
@@ -2063,7 +2063,7 @@
msghandler->Publish(ev.msg);
}
-void ModeHandler::Other( int type, float damage, GEMClientActor* atObject, GEMClientActor* tarObject, csString& location )
+void ModeHandler::Other(int type, float damage, GEMClientActor* atObject, GEMClientActor* tarObject, csString& /*location*/)
{
switch (type)
{
Modified: trunk/src/client/pscal3dcallback.cpp
===================================================================
--- trunk/src/client/pscal3dcallback.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/pscal3dcallback.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -51,8 +51,8 @@
{
}
-csPtr<iBase> psCal3DCallbackLoader::Parse(iDocumentNode * node, iStreamSource*, iLoaderContext * ldr_context,
- iBase * context)
+csPtr<iBase> psCal3DCallbackLoader::Parse(iDocumentNode* node, iStreamSource*, iLoaderContext* /*ldr_context*/,
+ iBase* context)
{
// turn the iBase into an iSpriteCal3DFactoryState so we can use it
csRef<iMeshFactoryWrapper> meshFactoryWrapper = scfQueryInterface<iMeshFactoryWrapper > ( context);
@@ -124,7 +124,7 @@
{
}
-void psCal3DCallbackEffect::AnimationUpdate(float anim_time, CalModel * model, void * userData)
+void psCal3DCallbackEffect::AnimationUpdate(float anim_time, CalModel* /*model*/, void* userData)
{
if (resetPerCycle)
{
@@ -134,7 +134,7 @@
if (anim_time >= triggerTime && !hasTriggered)
{
hasTriggered = true;
- GEMClientObject * gemObj = (GEMClientObject *)userData;
+ GEMClientObject* gemObj = (GEMClientObject*)userData;
if (gemObj)
{
effectID = psengine->GetEffectManager()->RenderEffect(effectName, csVector3(0,0,0), gemObj->GetMesh());
@@ -144,7 +144,7 @@
lastUpdateTime = anim_time;
}
-void psCal3DCallbackEffect::AnimationComplete(CalModel * model, void * userData)
+void psCal3DCallbackEffect::AnimationComplete(CalModel* /*model*/, void* /*userData*/)
{
hasTriggered = false;
Modified: trunk/src/client/pscal3dcallback.h
===================================================================
--- trunk/src/client/pscal3dcallback.h 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/pscal3dcallback.h 2010-12-29 21:53:26 UTC (rev 6628)
@@ -94,13 +94,13 @@
unsigned int callbackcount;
// Not using this for now.
- void AnimationUpdate(float anim_time,CalModel *model, void * userData)
+ void AnimationUpdate(float /*anim_time*/, CalModel* /*model*/, void* /*userData*/)
{
//printf("Anim Update at time %.2f.\n",anim_time);
}
// This is used to keep animations repeating.
- void AnimationComplete(CalModel *model, void * userData)
+ void AnimationComplete(CalModel* /*model*/, void* /*userData*/)
{
//printf("Anim Completed (%d)!\n",callbackcount);
if (callbackcount > 0)
Modified: trunk/src/client/pscamera.cpp
===================================================================
--- trunk/src/client/pscamera.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/pscamera.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -263,7 +263,7 @@
}
-void psCamera::HandleMessage(MsgEntry *msg)
+void psCamera::HandleMessage(MsgEntry* /*msg*/)
{
return;
}
@@ -870,6 +870,11 @@
// if (lastCameraMode == currCameraMode)
// return;
+ if (mode < 0)
+ {
+ return;
+ }
+
lastCameraMode = currCameraMode;
currCameraMode = mode;
@@ -994,7 +999,7 @@
return NULL;
}
-iMeshWrapper* psCamera::FindMeshUnder2D(int x, int y, csVector3 *pos, int *poly)
+iMeshWrapper* psCamera::FindMeshUnder2D(int x, int y, csVector3* pos, int* /*poly*/)
{
if (!GetICamera() || !GetICamera()->GetCamera()->GetSector())
return NULL;
Modified: trunk/src/client/pscelclient.h
===================================================================
--- trunk/src/client/pscelclient.h 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/pscelclient.h 2010-12-29 21:53:26 UTC (rev 6628)
@@ -420,7 +420,7 @@
/**
* Delayed load 'post-process'.
*/
- virtual void PostLoad(bool nullmesh) { }
+ virtual void PostLoad(bool /*nullmesh*/) { }
protected:
static psCelClient *cel;
Modified: trunk/src/client/pscharcontrol.cpp
===================================================================
--- trunk/src/client/pscharcontrol.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/pscharcontrol.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -411,7 +411,7 @@
movement = NULL;
}
-void psTriggerHandler::HandleBrightnessUp(const psControl* trigger, bool value)
+void psTriggerHandler::HandleBrightnessUp(const psControl* /*trigger*/, bool /*value*/)
{
csString sysmsg;
@@ -428,7 +428,7 @@
ackmsg.FireEvent();
}
-void psTriggerHandler::HandleBrightnessDown(const psControl* trigger, bool value)
+void psTriggerHandler::HandleBrightnessDown(const psControl* /*trigger*/, bool /*value*/)
{
csString sysmsg;
@@ -445,7 +445,7 @@
ackmsg.FireEvent();
}
- void psTriggerHandler::HandleBrightnessReset(const psControl* trigger, bool value)
+ void psTriggerHandler::HandleBrightnessReset(const psControl* /*trigger*/, bool /*value*/)
{
psengine->SetBrightnessCorrection(0.0f);
psengine->UpdateLights();
@@ -502,7 +502,7 @@
}
}
-void psTriggerHandler::HandleModeRun(const psControl* trigger, bool value)
+void psTriggerHandler::HandleModeRun(const psControl* /*trigger*/, bool /*value*/)
{
if(movement && !movement->Sneaking())
{
@@ -519,7 +519,7 @@
}
}
-void psTriggerHandler::HandleAutoMove(const psControl* trigger, bool value)
+void psTriggerHandler::HandleAutoMove(const psControl* /*trigger*/, bool /*value*/)
{
if(movement)
{
@@ -542,7 +542,7 @@
}
}
-void psTriggerHandler::HandleZoom(const psControl* trigger, bool value)
+void psTriggerHandler::HandleZoom(const psControl* trigger, bool /*value*/)
{
// KL: Removed check for value because we now treat this event as TOGGLE.
if (trigger->name == "Zoom in")
@@ -567,7 +567,7 @@
//should be SetPitch... but there is no method to do that currently so the movement is blocky for now
}
-void psTriggerHandler::HandleMouseLook(const psControl* trigger, bool value)
+void psTriggerHandler::HandleMouseLook(const psControl* /*trigger*/, bool value)
{
// RS: invert mouselook status so the mouselook button can be
// used to temporarily switch out of mouselook mode too
@@ -602,7 +602,7 @@
HandleMouseLook(trigger,!movement->MouseLook());
}
-void psTriggerHandler::HandleMouseZoom(const psControl* trigger, bool value)
+void psTriggerHandler::HandleMouseZoom(const psControl* /*trigger*/, bool value)
{
// KL: Changed order to match HandleMouseLookToggle (no change in functionality, just to keep code more readable).
if (movement->MouseZoom()!=value) // KL: Switch only if necessary to avoid jumping mouse cursor or overwriting last saved position.
@@ -614,7 +614,7 @@
}
-void psTriggerHandler::HandleMouseMove(const psControl* trigger, bool value)
+void psTriggerHandler::HandleMouseMove(const psControl* /*trigger*/, bool value)
{
if (value && psengine->GetCelClient()
&& psengine->GetCelClient()->GetMainPlayer()
@@ -629,13 +629,13 @@
}
}
-void psTriggerHandler::HandleCameraMode(const psControl* trigger, bool value)
+void psTriggerHandler::HandleCameraMode(const psControl* /*trigger*/, bool value)
{
if (value)
psengine->GetPSCamera()->NextCameraMode();
}
-void psTriggerHandler::HandleCenterCamera(const psControl* trigger, bool value)
+void psTriggerHandler::HandleCenterCamera(const psControl* /*trigger*/, bool value)
{
if (value)
{
@@ -654,7 +654,7 @@
}
}
-void psTriggerHandler::HandleMovementAction(const psControl* trigger, bool value)
+void psTriggerHandler::HandleMovementAction(const psControl* trigger, bool /*value*/)
{
if (trigger->name == "Sit" && psengine->GetCelClient()->GetMainPlayer())
{
Modified: trunk/src/client/psinventorycache.cpp
===================================================================
--- trunk/src/client/psinventorycache.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/psinventorycache.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -75,7 +75,7 @@
PawsManager::GetSingleton().Publish("sigClearInventorySlots");
}
-bool psInventoryCache::EmptyInventoryItem(int slot, int container)
+bool psInventoryCache::EmptyInventoryItem(int slot, int /*container*/)
{
CachedItemDescription *id = itemhash.Get(slot,NULL);
delete id;
@@ -85,7 +85,7 @@
}
bool psInventoryCache::SetInventoryItem(int slot,
- int container,
+ int /*container*/,
csString name,
csString meshName,
csString materialName,
Modified: trunk/src/client/psmovement.cpp
===================================================================
--- trunk/src/client/psmovement.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/psmovement.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -422,6 +422,8 @@
{
#ifdef MOVE_DEBUG
printf("Stopping mode %s\n", mode->name.GetData() );
+ #else
+ (void)mode; // surpress unused variable warning
#endif
SetActorMode(defaultmode);
Modified: trunk/src/client/psoptions.cpp
===================================================================
--- trunk/src/client/psoptions.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/psoptions.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -74,11 +74,11 @@
}
}
-void psOptions::NewSubscription(const char *name)
+void psOptions::NewSubscription(const char* /*name*/)
{
}
-double psOptions::GetProperty(MathEnvironment* env, const char* ptr)
+double psOptions::GetProperty(MathEnvironment* /*env*/, const char* ptr)
{
if (configFile->KeyExists(ptr))
return (double)configFile->GetFloat(ptr);
@@ -87,7 +87,7 @@
return 0.0;
}
-double psOptions::CalcFunction(MathEnvironment* env, const char* functionName, const double* params)
+double psOptions::CalcFunction(MathEnvironment* /*env*/, const char* functionName, const double* /*params*/)
{
if (!strcasecmp(functionName, "Save"))
{
Modified: trunk/src/client/psslotmgr.cpp
===================================================================
--- trunk/src/client/psslotmgr.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/psslotmgr.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -168,7 +168,7 @@
}
-void psSlotManager::OnNumberEntered(const char *name,int param,int count)
+void psSlotManager::OnNumberEntered(const char* /*name*/, int param, int count)
{
if ( count == -1 )
return;
Modified: trunk/src/client/questionclient.cpp
===================================================================
--- trunk/src/client/questionclient.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/questionclient.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -115,7 +115,7 @@
{
}
virtual ~psSecretGuildNotify() {};
- virtual void SetDecision(bool dec)
+ virtual void SetDecision(bool /*dec*/)
{
// always decline no matter what
qc->SendResponseToQuestion(questionID, "no");
@@ -128,7 +128,7 @@
* psQuestionClient
*******************************************************************/
-psQuestionClient::psQuestionClient(MsgHandler* mh,iObjectRegistry* obj)
+psQuestionClient::psQuestionClient(MsgHandler* mh, iObjectRegistry* /*obj*/)
{
messageHandler = mh;
Modified: trunk/src/client/weather.cpp
===================================================================
--- trunk/src/client/weather.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/weather.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -332,7 +332,7 @@
}
-void RainWeatherObject::Update(csTicks delta)
+void RainWeatherObject::Update(csTicks /*delta*/)
{
SetDrops(parent->downfall_params.value);
}
@@ -540,7 +540,7 @@
-void SnowWeatherObject::Update(csTicks delta)
+void SnowWeatherObject::Update(csTicks /*delta*/)
{
// Notify2(LOG_WEATHER,"Updating snow object, Setting drops: %d",parent->downfall_params.value);
@@ -618,7 +618,7 @@
return true;
}
-void FogWeatherObject::Update(csTicks delta)
+void FogWeatherObject::Update(csTicks /*delta*/)
{
// Notify2(LOG_WEATHER,"Updating fog object, Setting fog: %d",parent->fog_params.value);
SetColor(parent->r / 255.0f, parent->g / 255.0f, parent->b / 255.0f);
Modified: trunk/src/client/weather.h
===================================================================
--- trunk/src/client/weather.h 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/client/weather.h 2010-12-29 21:53:26 UTC (rev 6628)
@@ -80,8 +80,8 @@
// If you use this function, you need to call SetupMesh and stuff like that too
virtual void SetParent(WeatherInfo* new_parent) { parent = new_parent;}
virtual WeatherInfo* GetParent() {return parent;}
- virtual void SetColor(float r,float g,float b){};
- virtual void Update(csTicks delta){};
+ virtual void SetColor(float /*r*/, float /*g*/, float /*b*/){};
+ virtual void Update(csTicks /*delta*/){};
// Specific
virtual bool CreateMesh() = 0;
@@ -184,10 +184,10 @@
bool Valid();
bool CreateMesh();
void MoveTo(WeatherInfo* newParent,iSector* sector);
- void SetupMesh(csBox3 bbox){}
+ void SetupMesh(csBox3 /*bbox*/){}
iSector* GetSector();
- void MoveTo(csVector3 pos) {}
+ void MoveTo(csVector3 /*pos*/) {}
void StartFollow() {}
void StopFollow() {}
Modified: trunk/src/common/bgloader/parser.cpp
===================================================================
--- trunk/src/common/bgloader/parser.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/common/bgloader/parser.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -1024,6 +1024,8 @@
THREADED_CALLABLE_IMPL2(BgLoader, PrecacheData, const char* path, bool recursive)
{
+ (void)sync; // prevent unused variable warning
+
// Make sure shaders are parsed at this point.
ParseShaders();
Modified: trunk/src/common/celgraph/celgraph.cpp
===================================================================
--- trunk/src/common/celgraph/celgraph.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/common/celgraph/celgraph.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -245,7 +245,7 @@
bool celPath::HasNext ()
{
- return cur_node < nodes.GetSize()-1;
+ return cur_node < (int)(nodes.GetSize()-1);
}
bool celPath::HasPrevious ()
Modified: trunk/src/common/effects/pseffect.h
===================================================================
--- trunk/src/common/effects/pseffect.h 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/common/effects/pseffect.h 2010-12-29 21:53:26 UTC (rev 6628)
@@ -204,27 +204,27 @@
: scfImplementationType(this)
{
movableDead = false;
- movableChanged = false;
- movable = 0;
+ movableChanged = false;
+ movable = 0;
}
virtual ~psEffectMovableListener() {}
/** Implementation of the iMovableListener function, allows us to detect the movements of the movable
*/
- virtual void MovableChanged(iMovable * movable)
+ virtual void MovableChanged(iMovable* movable)
{
- movableChanged = true;
- this->movable = movable;
+ movableChanged = true;
+ this->movable = movable;
}
/** Implementation of the iMovableListener function, allows us to detect if the movable was destroyed
*/
- virtual void MovableDestroyed(iMovable * movable)
+ virtual void MovableDestroyed(iMovable* /*movable*/)
{
movableDead = true;
- this->movable = 0;
- movableChanged = false;
+ this->movable = 0;
+ movableChanged = false;
}
/** Checks to see if the movable has disappeared
Modified: trunk/src/common/effects/pseffectobjquad.h
===================================================================
--- trunk/src/common/effects/pseffectobjquad.h 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/common/effects/pseffectobjquad.h 2010-12-29 21:53:26 UTC (rev 6628)
@@ -45,7 +45,7 @@
parent = 0;
}
- void Update(csTicks elapsed, int num_verts, uint32 version_id)
+ void Update(csTicks /*elapsed*/, int /*num_verts*/, uint32 /*version_id*/)
{
}
@@ -55,10 +55,18 @@
bool AnimatesNormals() const { return false; }
bool AnimatesColors() const { return false; }
- const csVector3 * UpdateVertices(csTicks current, const csVector3 * verts, int num_verts, uint32 version_id);
- const csVector2 * UpdateTexels(csTicks current, const csVector2 * texels, int num_texels, uint32 version_id);
- const csVector3 * UpdateNormals(csTicks current, const csVector3 * normals, int num_normals, uint32 version_id) { return normals; }
- const csColor4 * UpdateColors(csTicks current, const csColor4 * colors, int num_colors, uint32 version_id) { return colors; }
+ const csVector3* UpdateVertices(csTicks current, const csVector3* verts, int num_verts, uint32 version_id);
+ const csVector2* UpdateTexels(csTicks current, const csVector2* texels, int num_texels, uint32 version_id);
+ const csVector3* UpdateNormals(csTicks /*current*/, const csVector3* normals, int /*num_normals*/,
+ uint32 /*version_id*/)
+ {
+ return normals;
+ }
+ const csColor4* UpdateColors(csTicks /*current*/, const csColor4* colors, int /*num_colors*/,
+ uint32 /*version_id*/)
+ {
+ return colors;
+ }
};
csRef<MeshAnimControl> meshControl;
friend struct MeshAnimControl;
Modified: trunk/src/common/effects/pseffectobjtextable.h
===================================================================
--- trunk/src/common/effects/pseffectobjtextable.h 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/common/effects/pseffectobjtextable.h 2010-12-29 21:53:26 UTC (rev 6628)
@@ -26,7 +26,7 @@
{
ETA_LEFT,
ETA_CENTER,
- ETA_RIGHT,
+ ETA_RIGHT
};
struct psEffectTextRow
Modified: trunk/src/common/net/clientmsghandler.cpp
===================================================================
--- trunk/src/common/net/clientmsghandler.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/common/net/clientmsghandler.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -68,7 +68,7 @@
return true;
}
-bool ClientMsgHandler::HandleEvent(iEvent &ev)
+bool ClientMsgHandler::HandleEvent(iEvent& /*ev*/)
{
if (!netbase->IsReady())
return false;
Modified: trunk/src/common/net/connection.cpp
===================================================================
--- trunk/src/common/net/connection.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/common/net/connection.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -116,7 +116,7 @@
shouldRun = false;
if (thread){
thread->Wait();
- Debug2(LOG_NET,0, "psNetConnection::DisConnect Thread %p supposedly terminated..",this);
+ Debug2(LOG_NET,0, "psNetConnection::DisConnect Thread %p supposedly terminated..", (void*)this);
thread = NULL;
}
if (server)
@@ -151,6 +151,8 @@
#ifdef DEBUG
if (clientnum!=0)
Error1 ("clientnum != 0 !?!");
+#else
+ (void)clientnum; // supress unused var warning
#endif
return server;
}
@@ -228,7 +230,7 @@
}
}
- Debug2(LOG_NET, 0, "Run Stopped this=%p\n",this);
+ Debug2(LOG_NET, 0, "Run Stopped this=%p\n", (void*)this);
}
void psNetConnection::CheckLinkDead (csTicks currenttime)
Modified: trunk/src/common/net/messages.cpp
===================================================================
--- trunk/src/common/net/messages.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/common/net/messages.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -414,12 +414,12 @@
}
-psCharacterApprovedMessage::psCharacterApprovedMessage( MsgEntry* message )
+psCharacterApprovedMessage::psCharacterApprovedMessage(MsgEntry* /*message*/)
{
// No data, always valid
}
-csString psCharacterApprovedMessage::ToString(AccessPointers * /*access_ptrs*/)
+csString psCharacterApprovedMessage::ToString(AccessPointers* /*access_ptrs*/)
{
csString msgtext;
@@ -2010,7 +2010,7 @@
valid=!(msg->overrun);
}
-psWeatherMessage::psWeatherMessage(uint32_t client, psWeatherMessage::NetWeatherInfo info, uint clientnum )
+psWeatherMessage::psWeatherMessage(uint32_t client, psWeatherMessage::NetWeatherInfo info, uint /*clientnum*/)
{
size_t size =
sizeof(uint8_t) + // type
@@ -4367,7 +4367,7 @@
sectorName = sector->QueryObject()->GetName();
}
- csStringID sectorNameStrId;
+ csStringID sectorNameStrId = csInvalidStringID;
if (msgstrings)
{
sectorNameStrId = msgstrings ? msgstrings->Request(sectorName.GetDataSafe()) : csInvalidStringID;
@@ -4442,7 +4442,7 @@
return flags;
}
-void psDRMessage::WriteDRInfo(uint32_t client, EID mappedid,
+void psDRMessage::WriteDRInfo(uint32_t /*client*/, EID mappedid,
bool on_ground, uint8_t mode, uint8_t counter,
const csVector3& pos, float yrot, iSector *sector,
csString sectorName, const csVector3& vel, csVector3& worldVel,
@@ -4672,11 +4672,11 @@
msg->clientnum = 0;
}
-psPersistWorldRequest::psPersistWorldRequest(MsgEntry* me)
+psPersistWorldRequest::psPersistWorldRequest(MsgEntry* /*me*/)
{
}
-csString psPersistWorldRequest::ToString(AccessPointers * /*access_ptrs*/)
+csString psPersistWorldRequest::ToString(AccessPointers* /*access_ptrs*/)
{
csString msgtext;
@@ -4699,11 +4699,11 @@
valid=!(msg->overrun);
}
-psRequestAllObjects::psRequestAllObjects(MsgEntry* me)
+psRequestAllObjects::psRequestAllObjects(MsgEntry* /*me*/)
{
}
-csString psRequestAllObjects::ToString(AccessPointers * /*access_ptrs*/)
+csString psRequestAllObjects::ToString(AccessPointers* /*access_ptrs*/)
{
csString msgtext;
@@ -4729,7 +4729,7 @@
msg->Add( sector );
}
-psPersistWorld::psPersistWorld( MsgEntry* me )
+psPersistWorld::psPersistWorld(MsgEntry* me)
{
float x = me->GetFloat();
float y = me->GetFloat();
@@ -4738,7 +4738,7 @@
sector = me->GetStr();
}
-csString psPersistWorld::ToString(AccessPointers * /*access_ptrs*/)
+csString psPersistWorld::ToString(AccessPointers* /*access_ptrs*/)
{
csString msgtext;
@@ -4752,11 +4752,11 @@
PSF_IMPLEMENT_MSG_FACTORY(psPersistActorRequest,MSGTYPE_PERSIST_ACTOR_REQUEST);
-psPersistActorRequest::psPersistActorRequest( MsgEntry* me )
+psPersistActorRequest::psPersistActorRequest(MsgEntry* /*me*/)
{
}
-csString psPersistActorRequest::ToString(AccessPointers * /*access_ptrs*/)
+csString psPersistActorRequest::ToString(AccessPointers* /*access_ptrs*/)
{
csString msgtext;
@@ -4770,12 +4770,12 @@
PSF_IMPLEMENT_MSG_FACTORY(psPersistAllEntities,MSGTYPE_PERSIST_ALL_ENTITIES);
-psPersistAllEntities::psPersistAllEntities( MsgEntry* me )
+psPersistAllEntities::psPersistAllEntities(MsgEntry* me)
{
msg = me;
}
-csString psPersistAllEntities::ToString(AccessPointers * access_ptrs)
+csString psPersistAllEntities::ToString(AccessPointers* /*access_ptrs*/)
{
return "PersistAllEntities";
}
@@ -4827,9 +4827,9 @@
const char* MounterAnim,
unsigned short int gender,
float scale,
- float mountscale,
+ float /*mountscale*/,
const char* helmGroup,
- const char* bracerGroup,
+ const char* /*bracerGroup*/,
const char* BeltGroup,
const char* CloakGroup,
csVector3 collTop, csVector3 collBottom, csVector3 collOffSet,
@@ -6102,11 +6102,11 @@
msg->clientnum = client;
}
-psExchangeAcceptMsg::psExchangeAcceptMsg( MsgEntry* me )
+psExchangeAcceptMsg::psExchangeAcceptMsg(MsgEntry* /*me*/)
{
}
-csString psExchangeAcceptMsg::ToString(AccessPointers * /*access_ptrs*/)
+csString psExchangeAcceptMsg::ToString(AccessPointers* /*access_ptrs*/)
{
csString msgtext;
@@ -6157,11 +6157,11 @@
msg->clientnum = client;
}
-psExchangeEndMsg::psExchangeEndMsg( MsgEntry* me )
+psExchangeEndMsg::psExchangeEndMsg(MsgEntry* /*me*/)
{
}
-csString psExchangeEndMsg::ToString(AccessPointers * /*access_ptrs*/)
+csString psExchangeEndMsg::ToString(AccessPointers* /*access_ptrs*/)
{
csString msgtext;
@@ -6188,13 +6188,13 @@
valid=!(msg->overrun);
}
-psUpdateObjectNameMessage::psUpdateObjectNameMessage( MsgEntry* me )
+psUpdateObjectNameMessage::psUpdateObjectNameMessage(MsgEntry* me)
{
objectID = EID(me->GetUInt32());
newObjName = me->GetStr();
}
-csString psUpdateObjectNameMessage::ToString(AccessPointers * /*access_ptrs*/)
+csString psUpdateObjectNameMessage::ToString(AccessPointers* /*access_ptrs*/)
{
csString msgtext;
@@ -6327,7 +6327,7 @@
msg->Add( reason );
}
-psNameCheckMessage::psNameCheckMessage( MsgEntry* me )
+psNameCheckMessage::psNameCheckMessage(MsgEntry* /*me*/)
{
/*
TODO: Check if this is this way or the other way around.
@@ -6413,7 +6413,7 @@
PSF_IMPLEMENT_MSG_FACTORY(psHeartBeatMsg,MSGTYPE_HEART_BEAT);
-psHeartBeatMsg::psHeartBeatMsg( MsgEntry* me )
+psHeartBeatMsg::psHeartBeatMsg(MsgEntry* /*me*/)
{
}
@@ -6425,7 +6425,7 @@
msg->clientnum = client;
}
-csString psHeartBeatMsg::ToString(AccessPointers * /*access_ptrs*/)
+csString psHeartBeatMsg::ToString(AccessPointers* /*access_ptrs*/)
{
csString msgtext;
@@ -6709,7 +6709,7 @@
PSF_IMPLEMENT_MSG_FACTORY(psClientStatusMessage,MSGTYPE_CLIENTSTATUS);
-psClientStatusMessage::psClientStatusMessage(bool ready)
+psClientStatusMessage::psClientStatusMessage(bool /*ready*/)
{
msg.AttachNew(new MsgEntry(sizeof(uint8_t)));
@@ -6721,7 +6721,7 @@
valid=true;
}
-psClientStatusMessage::psClientStatusMessage(MsgEntry *message)
+psClientStatusMessage::psClientStatusMessage(MsgEntry* message)
{
uint8_t status = message->GetUInt8();
@@ -6731,7 +6731,7 @@
valid=!(message->overrun);
}
-csString psClientStatusMessage::ToString(AccessPointers * /*access_ptrs*/)
+csString psClientStatusMessage::ToString(AccessPointers* /*access_ptrs*/)
{
csString msgtext;
@@ -7528,7 +7528,7 @@
}
-csString psSequenceMessage::ToString(AccessPointers * /*access_ptrs*/)
+csString psSequenceMessage::ToString(AccessPointers* /*access_ptrs*/)
{
csString msgtext;
@@ -7542,7 +7542,7 @@
PSF_IMPLEMENT_MSG_FACTORY(psPlaySoundMessage, MSGTYPE_PLAYSOUND);
-psPlaySoundMessage::psPlaySoundMessage(uint32_t clientnum, csString snd)
+psPlaySoundMessage::psPlaySoundMessage(uint32_t clientnum, csString /*snd*/)
{
msg.AttachNew(new MsgEntry(sound.Length()+1));
msg->SetType(MSGTYPE_PLAYSOUND);
@@ -7557,7 +7557,7 @@
valid=!(msg->overrun);
}
-csString psPlaySoundMessage::ToString(AccessPointers * /*access_ptrs*/)
+csString psPlaySoundMessage::ToString(AccessPointers* /*access_ptrs*/)
{
csString msgtext("Message Sound:");
return msgtext+sound;
@@ -7606,11 +7606,11 @@
valid = !(msg->overrun);
}
-psCharIntroduction::psCharIntroduction( MsgEntry* message )
+psCharIntroduction::psCharIntroduction(MsgEntry* /*message*/)
{
}
-csString psCharIntroduction::ToString(AccessPointers * access_ptrs)
+csString psCharIntroduction::ToString(AccessPointers* /*access_ptrs*/)
{
csString msgtext;
return msgtext;
@@ -7719,7 +7719,7 @@
valid = !(msg->overrun);
}
-csString psDialogMenuMessage::ToString(AccessPointers *access_ptrs)
+csString psDialogMenuMessage::ToString(AccessPointers* /*access_ptrs*/)
{
csString text;
for( size_t i = 0; i < responses.GetSize(); i++ )
@@ -7743,7 +7743,7 @@
valid=!(msg->overrun);
}
-psSimpleStringMessage::psSimpleStringMessage( MsgEntry* me )
+psSimpleStringMessage::psSimpleStringMessage(MsgEntry* me)
{
str = me->GetStr();
valid = !(me->overrun);
@@ -7763,7 +7763,7 @@
valid=!(msg->overrun);
}
-psOrderedMessage::psOrderedMessage( MsgEntry* me )
+psOrderedMessage::psOrderedMessage(MsgEntry* me)
{
value = me->GetUInt32();
valid = !(me->overrun);
Modified: trunk/src/common/net/messages.h
===================================================================
--- trunk/src/common/net/messages.h 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/common/net/messages.h 2010-12-29 21:53:26 UTC (rev 6628)
@@ -388,14 +388,14 @@
void psfRegisterMsgFactoryFunction(psfMsgFactoryFunc factoryfunc, int msgtype, const char* msgtypename);
psMessageCracker* psfCreateMsg(int msgtype,
MsgEntry* me,
- psMessageCracker::AccessPointers * access_ptrs);
+ psMessageCracker::AccessPointers* access_ptrs);
csString psfMsgTypeName(int msgType);
-int psfMsgType(const char * msgTypeName);
+int psfMsgType(const char* msgTypeName);
#define PSF_DECLARE_MSG_FACTORY() \
virtual csString GetMessageTypeName() const; \
- static psMessageCracker* CreateMessage(MsgEntry * me, \
- psMessageCracker::AccessPointers * access_ptrs)
+ static psMessageCracker* CreateMessage(MsgEntry* me, \
+ psMessageCracker::AccessPointers* access_ptrs)
#define PSF_IMPLEMENT_MSG_FACTORY_REGISTER(Class,MsgType) \
class Class##_StaticInit \
@@ -406,12 +406,12 @@
psfRegisterMsgFactoryFunction (Class::CreateMessage, \
MsgType,#MsgType); \
} \
- } Class##_static_init__;
+ } Class##_static_init__
#define PSF_IMPLEMENT_MSG_FACTORY_CREATE(Class) \
- psMessageCracker* Class::CreateMessage(MsgEntry * me, \
- psMessageCracker::AccessPointers * access_ptrs) \
+ psMessageCracker* Class::CreateMessage(MsgEntry* me, \
+ psMessageCracker::AccessPointers* /*access_ptrs*/) \
{ \
return (psMessageCracker*)new Class(me); \
}
@@ -423,13 +423,13 @@
}
#define PSF_IMPLEMENT_MSG_FACTORY(Class,MsgType) \
- PSF_IMPLEMENT_MSG_FACTORY_REGISTER(Class,MsgType) \
PSF_IMPLEMENT_MSG_FACTORY_TYPENAME(Class,MsgType) \
- PSF_IMPLEMENT_MSG_FACTORY_CREATE(Class)
+ PSF_IMPLEMENT_MSG_FACTORY_CREATE(Class) \
+ PSF_IMPLEMENT_MSG_FACTORY_REGISTER(Class,MsgType)
#define PSF_IMPLEMENT_MSG_FACTORY_CREATE2(Class) \
- psMessageCracker* Class::CreateMessage(MsgEntry * me, \
- psMessageCracker::AccessPointers * a_p) \
+ psMessageCracker* Class::CreateMessage(MsgEntry* me, \
+ psMessageCracker::AccessPointers* a_p) \
{ \
return (psMessageCracker*)new Class(me, \
a_p->msgstrings, \
@@ -437,13 +437,13 @@
}
#define PSF_IMPLEMENT_MSG_FACTORY2(Class,MsgType) \
- PSF_IMPLEMENT_MSG_FACTORY_REGISTER(Class,MsgType) \
PSF_IMPLEMENT_MSG_FACTORY_TYPENAME(Class,MsgType) \
- PSF_IMPLEMENT_MSG_FACTORY_CREATE2(Class)
+ PSF_IMPLEMENT_MSG_FACTORY_CREATE2(Class) \
+ PSF_IMPLEMENT_MSG_FACTORY_REGISTER(Class,MsgType)
#define PSF_IMPLEMENT_MSG_FACTORY_CREATE3(Class) \
- psMessageCracker* Class::CreateMessage(MsgEntry * me, \
- psMessageCracker::AccessPointers * a_p) \
+ psMessageCracker* Class::CreateMessage(MsgEntry* me, \
+ psMessageCracker::AccessPointers* a_p) \
{ \
return (psMessageCracker*)new Class(me, \
a_p->msgstrings, \
@@ -452,22 +452,22 @@
}
#define PSF_IMPLEMENT_MSG_FACTORY3(Class,MsgType) \
- PSF_IMPLEMENT_MSG_FACTORY_REGISTER(Class,MsgType) \
PSF_IMPLEMENT_MSG_FACTORY_TYPENAME(Class,MsgType) \
- PSF_IMPLEMENT_MSG_FACTORY_CREATE3(Class)
+ PSF_IMPLEMENT_MSG_FACTORY_CREATE3(Class) \
+ PSF_IMPLEMENT_MSG_FACTORY_REGISTER(Class,MsgType)
#define PSF_IMPLEMENT_MSG_FACTORY_CREATE4(Class) \
- psMessageCracker* Class::CreateMessage(MsgEntry * me, \
- psMessageCracker::AccessPointers * a_p) \
+ psMessageCracker* Class::CreateMessage(MsgEntry* me, \
+ psMessageCracker::AccessPointers* a_p) \
{ \
return (psMessageCracker*)new Class(me, \
a_p->msgstringshash); \
}
#define PSF_IMPLEMENT_MSG_FACTORY4(Class,MsgType) \
- PSF_IMPLEMENT_MSG_FACTORY_REGISTER(Class,MsgType) \
PSF_IMPLEMENT_MSG_FACTORY_TYPENAME(Class,MsgType) \
- PSF_IMPLEMENT_MSG_FACTORY_CREATE4(Class)
+ PSF_IMPLEMENT_MSG_FACTORY_CREATE4(Class) \
+ PSF_IMPLEMENT_MSG_FACTORY_REGISTER(Class,MsgType)
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
Modified: trunk/src/common/net/netbase.cpp
===================================================================
--- trunk/src/common/net/netbase.cpp 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/common/net/netbase.cpp 2010-12-29 21:53:26 UTC (rev 6628)
@@ -305,7 +305,7 @@
}
-bool NetBase::Flush(MsgQueue * queue)
+bool NetBase::Flush(MsgQueue* /*queue*/)
{
//@@@ Dirty, hack, this might be in a diffrent thread
//@@@ need to syncronize this in some way. But at least
Modified: trunk/src/common/net/npcmessages.h
===================================================================
--- trunk/src/common/net/npcmessages.h 2010-12-29 16:28:45 UTC (rev 6627)
+++ trunk/src/common/net/npcmessages.h 2010-12-29 21:53:26 UTC (rev 6628)
@@ -394,7 +394,7 @@
* @param access_ptrs A struct to a number of access pointers.
* @return Return a human readable string for the message.
*/
@@ Diff output truncated at 100000 characters. @@
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|