Fixed: Removed dummyToAvoidStupidCompilerWarning functions to fix compilation if std*.cpp are included more than once

This commit is contained in:
kervala 2010-09-28 11:18:21 +02:00
parent fdd2259694
commit 2e1891d281
15 changed files with 3 additions and 94 deletions

View file

@ -15,8 +15,3 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "stddirect3d.h"
// leave not static else this workaround don't work
void dummyToAvoidStupidCompilerWarning_std_direct3d_cpp()
{
}

View file

@ -15,10 +15,3 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "stdopengl.h"
// leave not static else this workaround don't work
void dummyToAvoidStupidCompilerWarning_stdopengl_cpp()
{
}

View file

@ -15,10 +15,3 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "std3d.h"
// leave not static else this workaround don't work
void dummyToAvoidStupidCompilerWarning_std_3d_cpp()
{
}

View file

@ -32,6 +32,8 @@
#include <exception>
#include <memory>
#include <functional>
#include <iostream>
#include <limits>
#include "nel/misc/rgba.h"
#include "nel/misc/debug.h"

View file

@ -15,10 +15,3 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "stdgeorges.h"
// leave not static else this workaround don't work
void dummyToAvoidStupidCompilerWarning_std_georges_cpp()
{
}

View file

@ -21,6 +21,7 @@
#include <vector>
#include <string>
#include <ctime>
#include <limits>
#include "nel/misc/debug.h"
#include "nel/misc/common.h"

View file

@ -15,10 +15,3 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "stdligo.h"
// leave not static else this workaround don't work
void dummyToAvoidStupidCompilerWarning_std_ligo_cpp()
{
}

View file

@ -15,10 +15,3 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "stdmisc.h"
// leave not static else this workaround don't work
void dummyToAvoidStupidCompilerWarning_std_misc_cpp()
{
}

View file

@ -15,10 +15,3 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "stdnet.h"
// leave not static else this workaround don't work
void dummyToAvoidStupidCompilerWarning_stdnet_cpp()
{
}

View file

@ -15,10 +15,3 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "stdpacs.h"
// leave not static else this workaround don't work
void dummyToAvoidStupidCompilerWarning_stdpacs_cpp()
{
}

View file

@ -15,15 +15,3 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "stdfmod.h"
namespace NLSOUND
{
void dummyToAvoidStupidVCWarning_stdfmod_cpp()
{
}
} // NLSOUND
/* end of file */

View file

@ -15,10 +15,3 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "stdopenal.h"
void dummyToAvoidStupidCompilerWarning_stdopenal_cpp()
{
}
/* end of file */

View file

@ -15,10 +15,3 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "stdsound_lowlevel.h"
// leave not static else this workaround don't work
void dummyToAvoidStupidCompilerWarning_std_sound_lowlevel_cpp()
{
}

View file

@ -15,10 +15,3 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "stdxaudio2.h"
void dummyToAvoidStupidCompilerWarning_stdxaudio2_cpp()
{
}
/* end of file */

View file

@ -15,10 +15,3 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "stdsound.h"
// leave not static else this workaround don't work
void dummyToAvoidStupidCompilerWarning_std_sound_cpp()
{
}