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

Issue 2797983003: Make WARN_UNUSED_RESULT a no-op on gcc (Closed)

Created:
3 years, 8 months ago by kwiberg-webrtc
Modified:
3 years, 8 months ago
Reviewers:
ossu, peah-webrtc
CC:
webrtc-reviews_webrtc.org, interface-changes_webrtc.org, yujie_mao (webrtc), tterriberry_mozilla.com, qiang.lu, niklas.enbom
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Make WARN_UNUSED_RESULT a no-op on gcc Because on gcc, cast to void doesn't silence the warning. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425 Also add an RTC_ prefix to the macro instead of only defining it if it wasn't already defined, to ensure that we always get our own version. BUG=none Review-Url: https://codereview.webrtc.org/2797983003 Cr-Commit-Position: refs/heads/master@{#17563} Committed: https://chromium.googlesource.com/external/webrtc/+/388fe425c783b1994608789842503ec756327913

Patch Set 1 #

Patch Set 2 : RTC_ prefix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -15 lines) Patch
M webrtc/base/swap_queue.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/ilbc/cb_construct.h View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/codecs/ilbc/decode.h View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/codecs/ilbc/decode_residual.h View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/codecs/ilbc/get_cd_vec.h View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/typedefs.h View 1 1 chunk +10 lines, -9 lines 0 comments Download

Messages

Total messages: 23 (13 generated)
kwiberg-webrtc
3 years, 8 months ago (2017-04-05 13:14:25 UTC) #4
peah-webrtc
On 2017/04/05 13:14:25, kwiberg-webrtc wrote: Nice!!! lgtm, but I guess there should be a bug-number!?
3 years, 8 months ago (2017-04-05 13:29:15 UTC) #5
ossu
The robots! They're so angry! Seems to clash with an already defined WARN_UNUSED_RESULT on android. ...
3 years, 8 months ago (2017-04-05 13:44:08 UTC) #8
kwiberg-webrtc
On 2017/04/05 13:44:08, ossu wrote: > The robots! They're so angry! > > Seems to ...
3 years, 8 months ago (2017-04-05 23:41:56 UTC) #12
kwiberg-webrtc
On 2017/04/05 13:29:15, peah-webrtc wrote: > On 2017/04/05 13:14:25, kwiberg-webrtc wrote: > > Nice!!! lgtm, ...
3 years, 8 months ago (2017-04-05 23:42:55 UTC) #13
kwiberg-webrtc
New patch set posted.
3 years, 8 months ago (2017-04-06 00:29:16 UTC) #16
peah-webrtc
On 2017/04/06 00:29:16, kwiberg-webrtc wrote: > New patch set posted. Even better. Still lgtm
3 years, 8 months ago (2017-04-06 06:30:08 UTC) #17
ossu
On 2017/04/05 23:41:56, kwiberg-webrtc wrote: > On 2017/04/05 13:44:08, ossu wrote: > > The robots! ...
3 years, 8 months ago (2017-04-06 11:21:15 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2797983003/20001
3 years, 8 months ago (2017-04-06 11:27:04 UTC) #20
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 11:32:32 UTC) #23
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/external/webrtc/+/388fe425c783b199460878984...

Powered by Google App Engine
This is Rietveld 408576698