Changeset 1502


Ignore:
Timestamp:
Jun 20, 2012, 7:12:11 PM (8 years ago)
Author:
sam
Message:

core: fix a few build warnings and remove useless operators from the
"half" class. The build is now 3% faster.

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/entity.cpp

    r1310 r1502  
    5353void Entity::TickGame(float seconds)
    5454{
     55    (void)seconds;
    5556#if !LOL_RELEASE
    5657    if (m_tickstate != STATE_PRETICK_GAME)
     
    6263void Entity::TickDraw(float seconds)
    6364{
     65    (void)seconds;
    6466#if !LOL_RELEASE
    6567    if (m_tickstate != STATE_PRETICK_DRAW)
  • trunk/src/layer.cpp

    r866 r1502  
    4646}
    4747
    48 void Layer::Render(int x, int y, int z)
     48void Layer::Render(int /* x */, int /* y */, int /* z */)
    4949{
    5050    static int error = 1;
  • trunk/src/lol/math/half.h

    r1313 r1502  
    157157    DECLARE_COERCE_HALF_OPS(type, type, x, (type)h)
    158158
    159 DECLARE_COERCE_TO_HALF_OPS(int8_t)
    160 DECLARE_COERCE_TO_HALF_OPS(uint8_t)
    161 DECLARE_COERCE_TO_HALF_OPS(int16_t)
    162 DECLARE_COERCE_TO_HALF_OPS(uint16_t)
     159/* Only provide coercion rules above int32_t, since the standard says
     160 * all smaller base types are coerced to int. */
    163161DECLARE_COERCE_TO_HALF_OPS(int32_t)
    164162DECLARE_COERCE_TO_HALF_OPS(uint32_t)
  • trunk/src/ticker.cpp

    r1325 r1502  
    152152}
    153153
    154 void *TickerData::GameThreadMain(void *p)
     154void *TickerData::GameThreadMain(void * /* p */)
    155155{
    156156    for (;;)
     
    297297}
    298298
    299 void *TickerData::DrawThreadMain(void *p)
     299void *TickerData::DrawThreadMain(void * /* p */)
    300300{
    301301    for (;;)
     
    311311}
    312312
    313 void *TickerData::DiskThreadMain(void *p)
     313void *TickerData::DiskThreadMain(void * /* p */)
    314314{
    315315    return NULL;
    316316}
    317317
    318 void Ticker::SetState(Entity *entity, uint32_t state)
    319 {
    320 
    321 }
    322 
    323 void Ticker::SetStateWhenMatch(Entity *entity, uint32_t state,
    324                                Entity *other_entity, uint32_t other_state)
     318void Ticker::SetState(Entity * /* entity */, uint32_t /* state */)
     319{
     320
     321}
     322
     323void Ticker::SetStateWhenMatch(Entity * /* entity */, uint32_t /* state */,
     324                               Entity * /* other_entity */, uint32_t /* other_state */)
    325325{
    326326
  • trunk/test/tutorial/01_triangle.cpp

    r1385 r1502  
    2121#if USE_SDL && defined __APPLE__
    2222#   include <SDL_main.h>
    23 #endif
    24 
    25 #if defined __native_client__
    26 #   define main old_main
    2723#endif
    2824
Note: See TracChangeset for help on using the changeset viewer.