Skip to content

Commit

Permalink
Be more polite about overriding virtual functions
Browse files Browse the repository at this point in the history
  • Loading branch information
SaladDais committed Mar 26, 2024
1 parent ad1021c commit 6134498
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if (MSVC)
add_definitions("-D_CRT_SECURE_NO_WARNINGS=1")
else()
# Don't whine about using sprintf() in doctest
add_definitions("-Wall -Wno-overloaded-virtual -Wno-deprecated-declarations")
add_definitions("-Wall -Wno-deprecated-declarations")
if (NOT CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
add_definitions("-Wno-unneeded-internal-declaration")
endif()
Expand Down
2 changes: 2 additions & 0 deletions libtailslide/passes/desugaring.hh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ class LLConformantDeSugaringVisitor : public DeSugaringVisitor {
: DeSugaringVisitor(allocator, mono_semantics) {};
protected:
bool visit(LSLConstantExpression *constant_expr) override;
// Make things stop complaining about hidden virtual functions
using DeSugaringVisitor::visit;

LSLASTNode *rewriteBuiltinLValue(LSLLValueExpression *lvalue) override;
};
Expand Down
3 changes: 3 additions & 0 deletions libtailslide/passes/globalexpr_validator.hh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ class SimpleAssignableValidatingVisitor: public GlobalExprValidatingVisitor {
bool visit(LSLExpression *expr) override;
bool visit(LSLUnaryExpression *unary_expr) override;
bool visit(LSLLValueExpression *lvalue) override;
// Make things stop complaining about hidden virtual functions
using GlobalExprValidatingVisitor::visit;

bool _mMonoSemantics;
};

Expand Down

0 comments on commit 6134498

Please sign in to comment.