From e168c4d3e13494b77bc93c8bfff589757a095594 Mon Sep 17 00:00:00 2001 From: Andrew Nelless Date: Sun, 28 Feb 2016 01:23:54 +0000 Subject: [PATCH] Fix cast parsing bug with GCC 4.7. GCC 4.7 doesn't seem to like some_cast<::type> --- pdns/mtasker_ucontext.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pdns/mtasker_ucontext.cc b/pdns/mtasker_ucontext.cc index aba7955e8..5bd19bd6f 100644 --- a/pdns/mtasker_ucontext.cc +++ b/pdns/mtasker_ucontext.cc @@ -61,14 +61,14 @@ pdns_ucontext_t::pdns_ucontext_t() { } pdns_ucontext_t::~pdns_ucontext_t() { - delete static_cast<::ucontext_t*>(uc_mcontext); + delete static_cast(uc_mcontext); } void pdns_swapcontext (pdns_ucontext_t& __restrict octx, pdns_ucontext_t const& __restrict ctx) { - if (::swapcontext (static_cast<::ucontext*>(octx.uc_mcontext), - static_cast<::ucontext*>(ctx.uc_mcontext))) { + if (::swapcontext (static_cast(octx.uc_mcontext), + static_cast(ctx.uc_mcontext))) { throw_errno ("swapcontext() failed"); } if (ctx.exception) { @@ -82,8 +82,8 @@ pdns_makecontext assert (ctx.uc_link); assert (ctx.uc_stack.size()); - auto const mcp = static_cast<::ucontext*>(ctx.uc_mcontext); - auto const next = static_cast<::ucontext*>(ctx.uc_link->uc_mcontext); + auto const mcp = static_cast(ctx.uc_mcontext); + auto const next = static_cast(ctx.uc_link->uc_mcontext); if (::getcontext (mcp)) { throw_errno ("getcontext() failed"); } -- 2.40.0