From 08f7f3ca5f8ee5d57f2ac5281686125349846161 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 2 Aug 2023 23:32:40 +0300 Subject: [PATCH] Fix compiler warnings introduced by gcc 13 --- source/core/bufferable.h | 1 + source/glsl/resolve.h | 1 + source/glsl/validate.h | 1 + source/glsl/visitor.h | 2 ++ 4 files changed, 5 insertions(+) diff --git a/source/core/bufferable.h b/source/core/bufferable.h index 6c9832a9..b3ebcdd7 100644 --- a/source/core/bufferable.h +++ b/source/core/bufferable.h @@ -2,6 +2,7 @@ #define MSP_GL_BUFFERABLE_H_ #include +#include #include #include "buffer.h" #include "mspgl_api.h" diff --git a/source/glsl/resolve.h b/source/glsl/resolve.h index d592e4ef..c014891a 100644 --- a/source/glsl/resolve.h +++ b/source/glsl/resolve.h @@ -134,6 +134,7 @@ private: virtual void visit(VariableDeclaration &); virtual void visit(FunctionDeclaration &); virtual void visit(Return &); + using TraversingVisitor::visit; }; /** Resolves function declarations and calls. */ diff --git a/source/glsl/validate.h b/source/glsl/validate.h index 3166c39b..c90a9d75 100644 --- a/source/glsl/validate.h +++ b/source/glsl/validate.h @@ -91,6 +91,7 @@ private: virtual void visit(StructDeclaration &); virtual void visit(VariableDeclaration &); virtual void visit(FunctionDeclaration &); + using Validator::visit; }; /** Verifies that there are no unresolved references. */ diff --git a/source/glsl/visitor.h b/source/glsl/visitor.h index 2503a15e..0b561b8d 100644 --- a/source/glsl/visitor.h +++ b/source/glsl/visitor.h @@ -72,6 +72,7 @@ public: virtual void visit(Iteration &); virtual void visit(Passthrough &); virtual void visit(Return &); + using NodeVisitor::visit; }; /** Removes a set of nodes from the syntax tree. */ @@ -96,6 +97,7 @@ private: virtual void visit(VariableDeclaration &); virtual void visit(FunctionDeclaration &); virtual void visit(Iteration &); + using TraversingVisitor::visit; }; /** Reorders a set of nodes so they appear before another node. Only nodes -- 2.45.2