Bug 1320892 - Remove useless assertion (which is breaking the build with gcc 7.0 and --enable-warnings-as-errors) r?jgilbert draft
authorSylvestre Ledru <sledru@mozilla.com>
Tue, 29 Nov 2016 11:19:04 +0100
changeset 445206 899141b7f064fedeefd6fcea781bd46db28aef40
parent 445201 4fcc4639733ef9de7528605e761c934363d87d84
child 445860 9200c124be59910a1ef876a34771014face9f221
push id37468
push usersledru@mozilla.com
push dateTue, 29 Nov 2016 10:19:32 +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
@@ -2017,17 +2017,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)