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

Issue 2450223002: Remove always-true DCHECK entries that fail build when dcheck_always_on=false. (Closed)

Created:
4 years, 1 month ago by kjellander_webrtc
Modified:
4 years, 1 month ago
CC:
webrtc-reviews_webrtc.org, tlegrand-webrtc, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, peah-webrtc, minyue-webrtc
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Remove always-true DCHECK entries that fail build when dcheck_always_on=false. Our bots always build with dcheck_always_on=true until http://crbug.com/652197 is fixed. This allows compile errors like this to sneak in: error: comparison of unsigned expression >= 0 is always true. BUG=webrtc:6517 NOTRY=True

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -2 lines) Patch
M webrtc/modules/audio_coding/neteq/dtmf_tone_generator.cc View 2 chunks +0 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
kjellander_webrtc
4 years, 1 month ago (2016-10-26 12:44:05 UTC) #3
kwiberg-webrtc
IMO, the problem is that the DCHECK macros avoid the warning only in checking mode. ...
4 years, 1 month ago (2016-10-26 13:40:46 UTC) #5
kjellander_webrtc
On 2016/10/26 13:40:46, kwiberg-webrtc wrote: > IMO, the problem is that the DCHECK macros avoid ...
4 years, 1 month ago (2016-10-26 13:51:11 UTC) #6
hlundin-webrtc
lgtm
4 years, 1 month ago (2016-10-27 10:49:44 UTC) #7
kwiberg-webrtc
On 2016/10/27 10:49:44, hlundin-webrtc wrote: > lgtm I'd really like to solve this by fixing ...
4 years, 1 month ago (2016-10-27 11:05:47 UTC) #8
kjellander_webrtc
On 2016/10/27 11:05:47, kwiberg-webrtc wrote: > On 2016/10/27 10:49:44, hlundin-webrtc wrote: > > lgtm > ...
4 years, 1 month ago (2016-10-27 19:57:50 UTC) #9
kjellander_webrtc
4 years, 1 month ago (2016-10-28 05:10:50 UTC) #10
On 2016/10/27 19:57:50, kjellander_webrtc wrote:
> On 2016/10/27 11:05:47, kwiberg-webrtc wrote:
> > On 2016/10/27 10:49:44, hlundin-webrtc wrote:
> > > lgtm
> > 
> > I'd really like to solve this by fixing the DCHECK macros instead. Here's an
> > attempt to do so: https://codereview.webrtc.org/2455943002/
> > 
> > Because I don't think it's useful for the compiler to force us to remove
> DCHECKs
> > just because their condition can be verified statically. That causes us to
> > remove the check, and once that's happened, future code changes are free to
> > violate the removed check and no one will know...
> 
> Awesome. I'll be happy to go with your proper fix instead.

Discarding this in favor for https://codereview.webrtc.org/2455943002/ which has
now landed.

Powered by Google App Engine
This is Rietveld 408576698