Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Issue 7623002: Build fix in for linux_use_heapchecker (Closed)

Created:
9 years, 4 months ago by kinuko
Modified:
9 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org
Visibility:
Public.

Description

Build fix for linux_use_heapchecker Make sure we return value in non-void function. BUG=none TBR=erikwright TEST=it builds with linux_use_heapchecker=1 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96343

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M webkit/plugins/ppapi/quota_file_io.cc View 1 chunk +1 line, -0 lines 1 comment Download

Messages

Total messages: 2 (0 generated)
kinuko
9 years, 4 months ago (2011-08-11 08:51:35 UTC) #1
erikwright (departed)
9 years, 4 months ago (2011-08-11 14:24:00 UTC) #2
http://codereview.chromium.org/7623002/diff/1/webkit/plugins/ppapi/quota_file...
File webkit/plugins/ppapi/quota_file_io.cc (right):

http://codereview.chromium.org/7623002/diff/1/webkit/plugins/ppapi/quota_file...
webkit/plugins/ppapi/quota_file_io.cc:29: NOTREACHED();
I wonder if removing the NOTREACHED would also work. If so, I think that would
be reasonable since (1) we can apparently rely on the compiler to tell us if
there is a non-returning path and (2) having a 'default' case is as literate as
the NOTREACHED.

Otherwise, I would probably remove the default case and the NOTREACHED and have
the final return be actually used.

Powered by Google App Engine
This is Rietveld 408576698