projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
configure: add '-Wlogical-op' to warning flags
[lttng-tools.git]
/
src
/
common
/
unix.cpp
diff --git
a/src/common/unix.cpp
b/src/common/unix.cpp
index 091587f48f0edbd31ebdb4d24f6714abba19b131..beeb69572f8e48902f5dd2cb235ddc05bb683d18 100644
(file)
--- a/
src/common/unix.cpp
+++ b/
src/common/unix.cpp
@@
-239,8
+239,11
@@
retry:
/*
* We consider EPIPE and EAGAIN/EWOULDBLOCK as expected.
*/
/*
* We consider EPIPE and EAGAIN/EWOULDBLOCK as expected.
*/
+ DIAGNOSTIC_PUSH
+ DIAGNOSTIC_IGNORE_LOGICAL_OP
if (errno == EAGAIN || errno == EWOULDBLOCK ||
errno == EPIPE) {
if (errno == EAGAIN || errno == EWOULDBLOCK ||
errno == EPIPE) {
+ DIAGNOSTIC_POP
/*
* Nothing was recv.
*/
/*
* Nothing was recv.
*/
@@
-343,8
+346,11
@@
retry:
/*
* We consider EPIPE and EAGAIN/EWOULDBLOCK as expected.
*/
/*
* We consider EPIPE and EAGAIN/EWOULDBLOCK as expected.
*/
+ DIAGNOSTIC_PUSH
+ DIAGNOSTIC_IGNORE_LOGICAL_OP
if (errno == EAGAIN || errno == EWOULDBLOCK ||
errno == EPIPE) {
if (errno == EAGAIN || errno == EWOULDBLOCK ||
errno == EPIPE) {
+ DIAGNOSTIC_POP
/*
* This can happen in non blocking mode.
* Nothing was sent.
/*
* This can happen in non blocking mode.
* Nothing was sent.
@@
-569,7
+575,10
@@
retry:
/*
* We consider EPIPE and EAGAIN/EWOULDBLOCK as expected.
*/
/*
* We consider EPIPE and EAGAIN/EWOULDBLOCK as expected.
*/
+ DIAGNOSTIC_PUSH
+ DIAGNOSTIC_IGNORE_LOGICAL_OP
if (errno == EAGAIN || errno == EWOULDBLOCK) {
if (errno == EAGAIN || errno == EWOULDBLOCK) {
+ DIAGNOSTIC_POP
/*
* This can happen in non blocking mode.
* Nothing was sent.
/*
* This can happen in non blocking mode.
* Nothing was sent.
@@
-883,7
+892,10
@@
retry:
/*
* We consider EPIPE and EAGAIN/EWOULDBLOCK as expected.
*/
/*
* We consider EPIPE and EAGAIN/EWOULDBLOCK as expected.
*/
+ DIAGNOSTIC_PUSH
+ DIAGNOSTIC_IGNORE_LOGICAL_OP
if (errno == EAGAIN || errno == EWOULDBLOCK) {
if (errno == EAGAIN || errno == EWOULDBLOCK) {
+ DIAGNOSTIC_POP
/*
* This can happen in non blocking mode.
* Nothing was recv.
/*
* This can happen in non blocking mode.
* Nothing was recv.
This page took
0.023679 seconds
and
4
git commands to generate.