fix shadow warnings

master
Daniel Kolesa 2016-03-04 21:28:41 +00:00
parent 4f6fdd2d83
commit 2dffd79d46
3 changed files with 274 additions and 274 deletions

View File

@ -1,4 +1,4 @@
LIBCUBESCRIPT_CXXFLAGS = -std=c++14 -Wall -Wextra -I. -fPIC
LIBCUBESCRIPT_CXXFLAGS = -std=c++14 -Wall -Wextra -Wshadow -I. -fPIC
LIBCUBESCRIPT_LDFLAGS = -shared
LIBCUBESCRIPT_OBJ = cubescript.o

File diff suppressed because it is too large Load Diff

View File

@ -501,8 +501,8 @@ inline bool check_alias(Ident *id) {
struct StackedValue: TaggedValue {
Ident *id;
StackedValue(Ident *id = nullptr):
TaggedValue(), id(id), p_stack(), p_pushed(false) {}
StackedValue(Ident *idv = nullptr):
TaggedValue(), id(idv), p_stack(), p_pushed(false) {}
~StackedValue() {
pop();