From 6101865c1e9b72e382246d3eb1b4ddf415320244 Mon Sep 17 00:00:00 2001 From: ThePhD Date: Sat, 14 Dec 2013 23:31:23 -0500 Subject: [PATCH] GCC warnings can go suck a duck. --- sol/stack.hpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sol/stack.hpp b/sol/stack.hpp index 821645f2..782bd98d 100644 --- a/sol/stack.hpp +++ b/sol/stack.hpp @@ -241,9 +241,14 @@ inline auto pop_call(lua_State* L, TFx&& fx, types) -> decltype(detail: return detail::ltr_pop(L, std::forward(fx), types()); } -template -void push_args(lua_State* L, Args&&... args) { +void push_args(lua_State*) { + +} + +template +void push_args(lua_State* L, Arg&& arg, Args&&... args) { using swallow = char[]; + stack::push(L, std::forward(arg)); void(swallow{'\0', (stack::push(L, std::forward(args)), '\0')... }); } } // stack