Ignore:
Timestamp:
08/26/14 04:03:10 (11 years ago)
Author:
epyon
Message:
  • nova now compiles again under all three compilers with -Winsane and no warnings
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lua/lua_nova.cc

    r319 r323  
    99#include "nv/lua/lua_raw.hh"
    1010
    11 const char* NV_STATE      = "NV_STATE";
    12 const char* NV_BLUEPRINTS = "NV_BLUEPRINTS";
     11static const char* NV_STATE      = "NV_STATE";
     12static const char* NV_BLUEPRINTS = "NV_BLUEPRINTS";
    1313
    1414// static nv::lua::state* nova_get_state( lua_State * L )
     
    7373                        return true;
    7474                }
     75                break;
    7576        case LUA_TSTRING :
    7677                if ( lua_type( L, ivalue ) != LUA_TTABLE )
     
    8687                lua_concat( L, 3 );
    8788                lua_call( L, 3, 0 );
     89                break;
    8890        case LUA_TNUMBER :
    8991                if (lua_tointeger( L, itype ) != lua_type( L, ivalue ) && lua_tointeger( L, itype ) > 0)
     
    9193                        luaL_error( L, "lua.nova - \"%s.%s\" - type mismatch, %s expected, %s found!", lua_tolstring( L, iid, 0 ), lua_tolstring( L, ifield, 0 ), lua_typename( L, lua_tointeger( L, itype ) ), lua_typename( L, lua_type( L, ivalue ) ) );
    9294                }
    93 
     95                break;
     96        default : return false;
    9497        }
    9598        return false;
     
    784787
    785788
    786 int luaopen_nova( lua_State * L )
     789static int luaopen_nova( lua_State * L )
    787790{
    788791        lua_createtable( L, 0, 0 );
Note: See TracChangeset for help on using the changeset viewer.