From ed58795eaf03bdee0b1fae8d05ce5b86d17549f7 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sat, 30 Jun 2018 16:15:05 -0600 Subject: Warning-less build All compile warning for -Wall have been fixed --- src/shared/lua_api/load_net.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/shared/lua_api/load_net.cpp') diff --git a/src/shared/lua_api/load_net.cpp b/src/shared/lua_api/load_net.cpp index 740d997..6fe8525 100644 --- a/src/shared/lua_api/load_net.cpp +++ b/src/shared/lua_api/load_net.cpp @@ -166,7 +166,7 @@ int send(lua_State* L){ //socket:receive(s_name,function(stream)) int netreceive(lua_State* L){ const char* name = lua_tostring(L,-2); - int slen = strlen(name); + //int slen = strlen(name); std::string s = std::string(name); int func = luaL_ref(L,LUA_REGISTRYINDEX); lua_pushstring(L,"fd"); @@ -178,8 +178,8 @@ int netreceive(lua_State* L){ } int socketFactory(lua_State*L){ - int domain = luaL_optint(L,-1,0); - int type = luaL_optint(L,-2,0); + //int domain = luaL_optint(L,-1,0); + //int type = luaL_optint(L,-2,0); int c = nn_socket(AF_SP,NN_PAIR); if(c < 0){ -- cgit v1.2.3-70-g09d2