[llvm-bugs] [Bug 42546] New: wasm/OutputSections.cpp is causing warning on GCC
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Jul 8 13:15:02 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=42546
Bug ID: 42546
Summary: wasm/OutputSections.cpp is causing warning on GCC
Product: lld
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: wasm
Assignee: unassignedbugs at nondot.org
Reporter: denis.bakhvalov at intel.com
CC: llvm-bugs at lists.llvm.org, sbc at chromium.org
After
commit e7eb8f099298b4c79397a1a287910628c82cc319
Author: Thomas Lively <tlively at google.com>
Date: Wed Jul 3 22:04:54 2019 +0000
[WebAssembly] Add option to emit passive segments
We have new warning reported by GCC (I tested at least gcc 5.5.0):
lld/wasm/OutputSections.cpp: In member function ‘virtual void
lld::wasm::DataSection::finalizeContents()’:
lld/wasm/OutputSections.cpp:136:31: error: suggest parentheses around ‘&&’
within ‘||’ [-Werror=parentheses]
Segments.size() <= 1 &&
^
The fix should be trivial.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190708/8c9d9844/attachment.html>
More information about the llvm-bugs
mailing list