(Folly) Remove unused variable according to -Wunused-variable
authorHannes Roth <hannesr@fb.com>
Fri, 3 May 2013 16:37:17 +0000 (09:37 -0700)
committerSara Golemon <sgolemon@fb.com>
Mon, 20 May 2013 18:01:27 +0000 (11:01 -0700)
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

folly/dynamic-inl.h

index 95d672af6ab1ec7c8819883f732f561912d0bd74..bae776a246f52499b26eea2e7d67d04a35f6b3cb 100644 (file)
@@ -544,8 +544,7 @@ inline dynamic& dynamic::at(dynamic const& idx) {
     return (*parray)[idx.asInt()];
   }
 
-  auto* pobj = get_nothrow<ObjectImpl>();
-  assert(pobj);
+  assert(get_nothrow<ObjectImpl>());
   auto it = find(idx);
   if (it == items().end()) {
     throw std::out_of_range(to<std::string>(