From: Hannes Roth Date: Fri, 3 May 2013 16:37:17 +0000 (-0700) Subject: (Folly) Remove unused variable according to -Wunused-variable X-Git-Tag: v0.22.0~985 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=bbe8ee53ab2e73e900751611e09cd448d58bb07a;p=folly.git (Folly) Remove unused variable according to -Wunused-variable Summary: I am trying to move more code into a HPHP extension, and it's complaining about this. Test Plan: `fbconfig -r folly && fbmake runtests` Reviewed By: delong.j@fb.com FB internal diff: D799096 --- diff --git a/folly/dynamic-inl.h b/folly/dynamic-inl.h index 95d672af..bae776a2 100644 --- a/folly/dynamic-inl.h +++ b/folly/dynamic-inl.h @@ -544,8 +544,7 @@ inline dynamic& dynamic::at(dynamic const& idx) { return (*parray)[idx.asInt()]; } - auto* pobj = get_nothrow(); - assert(pobj); + assert(get_nothrow()); auto it = find(idx); if (it == items().end()) { throw std::out_of_range(to(