Changeset 2444


Ignore:
Timestamp:
Feb 19, 2013, 2:19:03 AM (6 years ago)
Author:
sam
Message:

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

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r2403 r2444  
    443443  people/touky/Makefile
    444444  people/touky/private/Makefile
     445  people/touky/private/Tactics/Makefile
    445446  people/jylam/Makefile
    446447  people/jylam/private/Makefile
  • trunk/src/easymesh/easymesh.h

    r2442 r2444  
    6666    ShaderAttrib const *GetAttribute(const lol::String &attribute);
    6767    //--
    68     virtual void SetupShaderDatas(mat4 const &model) { }
     68    virtual void SetupShaderDatas(mat4 const &model) { UNUSED(model); }
    6969
    7070protected:
     
    357357        {
    358358            TexCoordBuildType tcbt = GetTexCoordBuildType2(mt);
     359            UNUSED(tcbt);
    359360            if (mt == MeshType::Triangle)
    360361                mt = mt;
  • trunk/src/lol/math/interp.h

    r2432 r2444  
    5151        int start = max(0, m_pos);
    5252        int a = 0;
    53         int b = min(m_pos + N, N);
     53        int b = min(m_pos + N - 1, N - 1);
    5454
    5555        while (a + 1 < b)
  • trunk/src/numeric.h

    r2279 r2444  
    2727{
    2828    using namespace std;
    29     return (float)rand() / RAND_MAX;
     29    return (float)std::rand() / RAND_MAX;
    3030}
    3131
  • trunk/src/scene.cpp

    r2289 r2444  
    176176    {
    177177        Tile tmp = data->m_tiles[i];
    178         int j = rand() % data->m_tiles.Count();
     178        int j = std::rand() % data->m_tiles.Count();
    179179        data->m_tiles[i] = data->m_tiles[j];
    180180        data->m_tiles[j] = tmp;
  • trunk/src/ticker.cpp

    r2423 r2444  
    186186
    187187        /* Ensure some randomness */
    188         (void)rand();
     188        (void)std::rand();
    189189
    190190        /* If recording with fixed framerate, set deltatime to a fixed value */
Note: See TracChangeset for help on using the changeset viewer.