|
From: <bul...@us...> - 2013-05-30 16:46:18
|
Revision: 22784
http://sourceforge.net/p/bzflag/code/22784
Author: bullet_catcher
Date: 2013-05-30 16:46:16 +0000 (Thu, 30 May 2013)
Log Message:
-----------
Use AM_CXXFLAGS, which has compiler flags from configure.
Use unused variables in a useless way to silence warnings.
Modified Paths:
--------------
trunk/bzflag/plugins/serverSidePlayerSample/Makefile.am
trunk/bzflag/plugins/serverSidePlayerSample/playerHandler.cpp
Modified: trunk/bzflag/plugins/serverSidePlayerSample/Makefile.am
===================================================================
--- trunk/bzflag/plugins/serverSidePlayerSample/Makefile.am 2013-05-29 18:19:55 UTC (rev 22783)
+++ trunk/bzflag/plugins/serverSidePlayerSample/Makefile.am 2013-05-30 16:46:16 UTC (rev 22784)
@@ -4,7 +4,7 @@
playerHandler.cpp \
playerHandler.h \
serverSidePlayerSample.cpp
-serverSidePlayerSample_la_CXXFLAGS= -I$(top_srcdir)/include -I$(top_srcdir)/plugins/plugin_utils
+serverSidePlayerSample_la_CXXFLAGS= -I$(top_srcdir)/include -I$(top_srcdir)/plugins/plugin_utils $(AM_CXXFLAGS)
serverSidePlayerSample_la_LDFLAGS = -module -avoid-version -shared
serverSidePlayerSample_la_LIBADD = $(top_builddir)/plugins/plugin_utils/libplugin_utils.la
Modified: trunk/bzflag/plugins/serverSidePlayerSample/playerHandler.cpp
===================================================================
--- trunk/bzflag/plugins/serverSidePlayerSample/playerHandler.cpp 2013-05-29 18:19:55 UTC (rev 22783)
+++ trunk/bzflag/plugins/serverSidePlayerSample/playerHandler.cpp 2013-05-30 16:46:16 UTC (rev 22784)
@@ -34,6 +34,7 @@
std::string playerName = bz_getPlayerCallsign(player);
std::string msg = "Oh look, " + playerName + " decided to join us!";
sendChatMessage(msg.c_str());
+ rot += pos[0]; // use these variables in a useless way to silence warning
}
void PlayerHandler::shotFired(int player, unsigned short shotID)
@@ -41,6 +42,7 @@
std::string playerName = bz_getPlayerCallsign(player);
std::string msg = "Hey, " + playerName + " I bet you think you are special now!";
sendChatMessage(msg.c_str());
+ ++shotID; // use this variable in a useless way to silence warning
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|