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

Issue 1928363002: Add parentheses to silence clang warning (Closed)

Created:
4 years, 7 months ago by Primiano Tucci (use gerrit)
Modified:
4 years, 7 months ago
CC:
google-breakpad-dev_googlegroups.com, Ted Mielczarek
Base URL:
https://chromium.googlesource.com/breakpad/breakpad.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add parentheses to silence clang warning crrev.com/1887033002 introuced a clang warning (see below). This fixes it, so that breakpad can be rolled in chrome, where warnings are always fatal. From: https://build.chromium.org/p/tryserver.chromium.android/builders/android_chromium_gn_compile_dbg/builds/59031/steps/compile%20%28with%20patch%29/logs/stdio FAILED: clang_x64/obj/breakpad/dump_syms/dwarf_cu_to_module.o ../../breakpad/src/common/dwarf_cu_to_module.cc:420:20: error: '&&' within '||' [-Werror,-Wlogical-op-parentheses] if (declaration_ && qualified_name || (unqualified_name && enclosing_name)) { ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ ~~ ../../breakpad/src/common/dwarf_cu_to_module.cc:420:20: note: place parentheses around the '&&' expression to silence this warning if (declaration_ && qualified_name || (unqualified_name && enclosing_name)) { ^ ( ) R=mark@chromium.org, petrcermak@chromium.org Committed: https://chromium.googlesource.com/breakpad/breakpad/+/fcb844ee32171e2340162f1ced0e7fdcde7b2b24

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M src/common/dwarf_cu_to_module.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 9 (3 generated)
Primiano Tucci (use gerrit)
4 years, 7 months ago (2016-04-29 11:21:23 UTC) #2
petrcermak
LGTM. You were about 2 minutes faster than me :-D Thanks, Petr
4 years, 7 months ago (2016-04-29 11:22:15 UTC) #3
petrcermak
On 2016/04/29 11:22:15, petrcermak wrote: > LGTM. You were about 2 minutes faster than me ...
4 years, 7 months ago (2016-04-29 11:24:11 UTC) #4
petrcermak
mark: Ping
4 years, 7 months ago (2016-05-03 14:25:00 UTC) #6
Mark Mentovai
LGTM
4 years, 7 months ago (2016-05-03 14:44:45 UTC) #7
Primiano Tucci (use gerrit)
4 years, 7 months ago (2016-05-03 14:56:13 UTC) #9
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
fcb844ee32171e2340162f1ced0e7fdcde7b2b24 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698