From: Matthew Barr Date: Mon, 25 Jul 2016 06:24:30 +0000 (+1000) Subject: Older gcc doesn't like shadowing the function X-Git-Tag: v4.3.0^2~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=151810b4fc534d63880d3b82763f073bdab388c1;p=thirdparty%2Fvectorscan.git Older gcc doesn't like shadowing the function --- diff --git a/src/rose/rose_build_impl.h b/src/rose/rose_build_impl.h index 15047491..d239a698 100644 --- a/src/rose/rose_build_impl.h +++ b/src/rose/rose_build_impl.h @@ -338,7 +338,7 @@ struct OutfixInfo { template explicit OutfixInfo(std::unique_ptr x) : proto(std::move(x)) {} - explicit OutfixInfo(MpvProto mpv) : proto(std::move(mpv)) {} + explicit OutfixInfo(MpvProto mpv_in) : proto(std::move(mpv_in)) {} u32 get_queue(QueueIndexFactory &qif); @@ -348,14 +348,14 @@ struct OutfixInfo { } bool is_nonempty_mpv() const { - auto *mpv = boost::get(&proto); - return mpv && !mpv->empty(); + auto *m = boost::get(&proto); + return m && !m->empty(); } bool is_dead() const { - auto *mpv = boost::get(&proto); - if (mpv) { - return mpv->empty(); + auto *m = boost::get(&proto); + if (m) { + return m->empty(); } return boost::get(&proto) != nullptr; }