summaryrefslogtreecommitdiff
path: root/gcc/tree-cfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r--gcc/tree-cfg.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c
index 16483073e0d..8fcaae8c780 100644
--- a/gcc/tree-cfg.c
+++ b/gcc/tree-cfg.c
@@ -8355,12 +8355,6 @@ run_warn_unused_result (void)
return 0;
}
-static bool
-gate_warn_unused_result (void)
-{
- return flag_warn_unused_result;
-}
-
namespace {
const pass_data pass_data_warn_unused_result =
@@ -8385,7 +8379,7 @@ public:
{}
/* opt_pass methods: */
- bool gate () { return gate_warn_unused_result (); }
+ virtual bool gate (function *) { return flag_warn_unused_result; }
unsigned int execute () { return run_warn_unused_result (); }
}; // class pass_warn_unused_result