fix shadow warnings
parent
4f6fdd2d83
commit
2dffd79d46
2
Makefile
2
Makefile
|
@ -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
|
||||
|
|
542
cubescript.cc
542
cubescript.cc
File diff suppressed because it is too large
Load Diff
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue