summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChih-Wei Huang <cwhuang@linux.org.tw>2010-12-16 17:23:19 +0800
committerChih-Wei Huang <cwhuang@linux.org.tw>2010-12-29 17:35:47 +0800
commitf189dfe9e92dc5eff30ed00bc2e1dae5c5e59fa4 (patch)
tree9a159e38dc974e36a6d27754e7bfafc534fe955d
parentd1ccafa5b7a79366a8439c2e39e8bf8fe7bdacb6 (diff)
mesa: fix compiling issues with gcc 4.4.xandroid-x86-2.2
Gcc 4.4 requires a class with virtual functions has to define the virtual destructor.
-rw-r--r--src/glsl/ast.h1
-rw-r--r--src/glsl/ir.h1
-rw-r--r--src/glsl/ir_hierarchical_visitor.h1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/ast.h b/src/glsl/ast.h
index a77b522705..1420f234b6 100644
--- a/src/glsl/ast.h
+++ b/src/glsl/ast.h
@@ -129,6 +129,7 @@ protected:
* be created.
*/
ast_node(void);
+ virtual ~ast_node() {}
};
diff --git a/src/glsl/ir.h b/src/glsl/ir.h
index 102a68b655..f3c1d42108 100644
--- a/src/glsl/ir.h
+++ b/src/glsl/ir.h
@@ -131,6 +131,7 @@ protected:
ir_type = ir_type_unset;
type = NULL;
}
+ virtual ~ir_instruction() {}
};
diff --git a/src/glsl/ir_hierarchical_visitor.h b/src/glsl/ir_hierarchical_visitor.h
index dc177f5eb0..387563f113 100644
--- a/src/glsl/ir_hierarchical_visitor.h
+++ b/src/glsl/ir_hierarchical_visitor.h
@@ -77,6 +77,7 @@ enum ir_visitor_status {
class ir_hierarchical_visitor {
public:
ir_hierarchical_visitor();
+ virtual ~ir_hierarchical_visitor() {}
/**
* \name Visit methods for leaf-node classes