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 353031 01baa08ef776f2c3ba5b59a75753d2c47a2187ef
parent 353030 33ed433e98aa16b1bda2e66b70049df5d69b10b2
child 353032 3d32a5d8dc3e7bcac8883d434cdcf11baba69dfd
push id6795
push userjlund@mozilla.com
push dateMon, 23 Jan 2017 14:19:46 +0000
treeherdermozilla-esr52@76101b503191 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgilbert, gchang
bugs1320892
milestone52.0a2
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
@@ -2014,17 +2014,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)