aboutsummaryrefslogtreecommitdiff
path: root/odb/processor.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-05-05 15:02:44 -0700
committerBoris Kolpackov <boris@codesynthesis.com>2014-05-05 15:02:44 -0700
commit97281fd4454596834142fa43f83af38695b38e5b (patch)
treee39e42c289a8c4db27a12ff4eaff01b7b905f6cf /odb/processor.cxx
parente8c365d6d0ba4c969819b4c6aacab54ad7461a00 (diff)
GCC 4.9.0 compatibility fixes
Diffstat (limited to 'odb/processor.cxx')
-rw-r--r--odb/processor.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/odb/processor.cxx b/odb/processor.cxx
index 0964645..6a9c2a3 100644
--- a/odb/processor.cxx
+++ b/odb/processor.cxx
@@ -188,7 +188,7 @@ namespace
// suggested in the documentation.
//
tree r (TYPE_MAIN_VARIANT (TREE_TYPE (TREE_TYPE (f))));
- int tc (TREE_CODE (r));
+ gcc_tree_code_type tc (TREE_CODE (r));
// In the strict mode make sure the function returns for non-array
// types a value or a (const) reference to the member type and for
@@ -253,7 +253,7 @@ namespace
// suggested in the documentation.
//
tree r (TYPE_MAIN_VARIANT (TREE_TYPE (TREE_TYPE (f))));
- int tc (TREE_CODE (r));
+ gcc_tree_code_type tc (TREE_CODE (r));
// By-reference modifier. Should return a reference or a pointer.
//
@@ -297,7 +297,7 @@ namespace
// with regards to arrays, references, etc.
//
tree at (TREE_TYPE (a));
- int tc (TREE_CODE (at));
+ gcc_tree_code_type tc (TREE_CODE (at));
if (ar != 0 && tc != POINTER_TYPE)
return found_none;
@@ -2621,7 +2621,7 @@ namespace
// template or a type.
//
decl = resolve_name (p, cp->scope, true);
- int tc (TREE_CODE (decl));
+ gcc_tree_code_type tc (TREE_CODE (decl));
if (tc == TYPE_DECL)
{
@@ -2711,7 +2711,7 @@ namespace
// Resolve this name and make sure it is a template.
//
decl = resolve_name (p, cp->scope, true);
- int tc (TREE_CODE (decl));
+ gcc_tree_code_type tc (TREE_CODE (decl));
if (tc == TEMPLATE_DECL && DECL_CLASS_TEMPLATE_P (decl))
{