Bug 1320892 - Remove useless assertion (which is breaking the build with gcc 7.0 and --enable-warnings-as-errors) r=jgilbert
authorSylvestre Ledru <sledru@mozilla.com>
Tue, 29 Nov 2016 11:19:04 +0100
changeset 324857 616c1cdadadee675b4e6b7ec50418506d6a7a153
parent 324856 2747398601801bc3b7371db820443c5b36726097
child 324858 f0cbd37fec30ac0a2cace54a2a87e7d6b6e34733
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersjgilbert
bugs1320892
milestone53.0a1
Bug 1320892 - Remove useless assertion (which is breaking the build with gcc 7.0 and --enable-warnings-as-errors) r=jgilbert MozReview-Commit-ID: K0DWVA1Jbjb
dom/canvas/WebGLContext.h
--- a/dom/canvas/WebGLContext.h
+++ b/dom/canvas/WebGLContext.h
@@ -2018,17 +2018,16 @@ WebGLContext::ValidateObject(const char*
 
     return ValidateObjectAssumeNonNull(info, object);
 }
 
 template<class ObjectType>
 inline bool
 WebGLContext::ValidateObjectRef(const char* info, const ObjectType& object)
 {
-    MOZ_ASSERT(bool(&object));
     return ValidateObjectAssumeNonNull(info, &object);
 }
 
 // Returns `value` rounded to the next highest multiple of `multiple`.
 // AKA PadToAlignment, StrideForAlignment.
 template<typename V, typename M>
 V
 RoundUpToMultipleOf(const V& value, const M& multiple)