Explorar el Código

build: fix compiler warnings and Linux and PS3 build issues.

legacy
Sam Hocevar sam hace 11 años
padre
commit
bb28344eb7
Se han modificado 6 ficheros con 7 adiciones y 5 borrados
  1. +1
    -0
      configure.ac
  2. +2
    -1
      src/easymesh/easymesh.h
  3. +1
    -1
      src/lol/math/interp.h
  4. +1
    -1
      src/numeric.h
  5. +1
    -1
      src/scene.cpp
  6. +1
    -1
      src/ticker.cpp

+ 1
- 0
configure.ac Ver fichero

@@ -442,6 +442,7 @@ AC_CONFIG_FILES(
people/peeweek/private/Makefile
people/touky/Makefile
people/touky/private/Makefile
people/touky/private/Tactics/Makefile
people/jylam/Makefile
people/jylam/private/Makefile
people/jylam/private/chat/Makefile


+ 2
- 1
src/easymesh/easymesh.h Ver fichero

@@ -65,7 +65,7 @@ public:
ShaderUniform const *GetUniform(const lol::String &uniform);
ShaderAttrib const *GetAttribute(const lol::String &attribute);
//--
virtual void SetupShaderDatas(mat4 const &model) { }
virtual void SetupShaderDatas(mat4 const &model) { UNUSED(model); }

protected:
uint16_t m_vert_decl_flags;
@@ -356,6 +356,7 @@ public:
else
{
TexCoordBuildType tcbt = GetTexCoordBuildType2(mt);
UNUSED(tcbt);
if (mt == MeshType::Triangle)
mt = mt;
else if (mt == MeshType::Quad)


+ 1
- 1
src/lol/math/interp.h Ver fichero

@@ -50,7 +50,7 @@ public:

int start = max(0, m_pos);
int a = 0;
int b = min(m_pos + N, N);
int b = min(m_pos + N - 1, N - 1);

while (a + 1 < b)
{


+ 1
- 1
src/numeric.h Ver fichero

@@ -26,7 +26,7 @@ namespace lol
static inline float RandF()
{
using namespace std;
return (float)rand() / RAND_MAX;
return (float)std::rand() / RAND_MAX;
}

static inline float RandF(float val)


+ 1
- 1
src/scene.cpp Ver fichero

@@ -175,7 +175,7 @@ void Scene::Render() // XXX: rename to Blit()
for (int i = 0; i < data->m_tiles.Count(); i++)
{
Tile tmp = data->m_tiles[i];
int j = rand() % data->m_tiles.Count();
int j = std::rand() % data->m_tiles.Count();
data->m_tiles[i] = data->m_tiles[j];
data->m_tiles[j] = tmp;
}


+ 1
- 1
src/ticker.cpp Ver fichero

@@ -185,7 +185,7 @@ void *TickerData::GameThreadMain(void * /* p */)
data->frame++;

/* Ensure some randomness */
(void)rand();
(void)std::rand();

/* If recording with fixed framerate, set deltatime to a fixed value */
if (data->recording && data->fps)


Cargando…
Cancelar
Guardar