From 1f64a21df960293a9d6a9b50c4575d0a9f0bffdc Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Thu, 24 Apr 2014 18:45:17 +0000 Subject: [PATCH] Fix build: these asserts are always now true, which GCC warns about R=mtklein@google.com TBR=reed NOTRY=true NOTREECHECKS=true BUG=skia: Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/256453007 git-svn-id: http://skia.googlecode.com/svn/trunk@14359 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/pipe/SkGPipeRead.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/pipe/SkGPipeRead.cpp b/src/pipe/SkGPipeRead.cpp index af3ec1e..41c417f 100644 --- a/src/pipe/SkGPipeRead.cpp +++ b/src/pipe/SkGPipeRead.cpp @@ -231,14 +231,12 @@ private: /////////////////////////////////////////////////////////////////////////////// template const T* skip(SkReader32* reader, size_t count = 1) { - SkASSERT(count >= 0); size_t size = sizeof(T) * count; SkASSERT(SkAlign4(size) == size); return reinterpret_cast(reader->skip(size)); } template const T* skipAlign(SkReader32* reader, size_t count = 1) { - SkASSERT(count >= 0); size_t size = SkAlign4(sizeof(T) * count); return reinterpret_cast(reader->skip(size)); } -- 2.7.4