Bug 1320892 - Remove useless assertion (which is breaking the build with gcc 7.0 and --enable-warnings-as-errors) r=jgilbert a=gchang
authorSylvestre Ledru <sledru@mozilla.com>
Tue, 29 Nov 2016 11:19:04 +0100
changeset 452585 cac3f56905a6da5bb4390b8d71997581d9718e35
parent 452584 a0b2e78bf20da3d2b5fb4aa0c82668fd2eba4903
child 452586 15ecd2d4cce53c745c5e2253bfeb3be2696c00cd
push id39418
push userbmo:twointofive@gmail.com
push dateWed, 21 Dec 2016 20:59:30 +0000
reviewersjgilbert, gchang
bugs1320892
milestone51.0
Bug 1320892 - Remove useless assertion (which is breaking the build with gcc 7.0 and --enable-warnings-as-errors) r=jgilbert a=gchang MozReview-Commit-ID: K0DWVA1Jbjb
dom/canvas/WebGLContext.h
--- a/dom/canvas/WebGLContext.h
+++ b/dom/canvas/WebGLContext.h
@@ -2015,17 +2015,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)