projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a855c94
)
[debuginfo-test] Fix -Wunused-value
author
Fangrui Song
<i@maskray.me>
Thu, 7 Jan 2021 04:39:07 +0000
(20:39 -0800)
committer
Fangrui Song
<i@maskray.me>
Thu, 7 Jan 2021 04:39:07 +0000
(20:39 -0800)
debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.cpp
patch
|
blob
|
history
diff --git
a/debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.cpp
b/debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.cpp
index
54c26dc
..
8679628
100644
(file)
--- a/
debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.cpp
+++ b/
debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.cpp
@@
-59,8
+59,8
@@
int main() {
// Reference symbols that might otherwise be stripped.
ArrayRef[0];
MutableArrayRef[0];
- !ExpectedValue;
- !ExpectedError;
+
(void)
!ExpectedValue;
+
(void)
!ExpectedError;
*OptionalValue;
*OptionalNone;
return 0;