X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Funix.cpp;h=beeb69572f8e48902f5dd2cb235ddc05bb683d18;hb=942003e52b8fe43bfb8f28a1884d3bda7e6d1e0b;hp=504970ea8ace30b19457aef27801bdbf91390b60;hpb=a6bc4ca9d659caf016ef932fcd944029737ac57c;p=lttng-tools.git diff --git a/src/common/unix.cpp b/src/common/unix.cpp index 504970ea8..beeb69572 100644 --- a/src/common/unix.cpp +++ b/src/common/unix.cpp @@ -1,8 +1,8 @@ /* - * Copyright (C) 2011 David Goulet + * Copyright (C) 2011 EfficiOS Inc. * Copyright (C) 2011 Mathieu Desnoyers * - * SPDX-License-Identifier: GPL-2.0-only + * SPDX-License-Identifier: LGPL-2.1-only * */ @@ -239,8 +239,11 @@ retry: /* * We consider EPIPE and EAGAIN/EWOULDBLOCK as expected. */ + DIAGNOSTIC_PUSH + DIAGNOSTIC_IGNORE_LOGICAL_OP if (errno == EAGAIN || errno == EWOULDBLOCK || errno == EPIPE) { + DIAGNOSTIC_POP /* * Nothing was recv. */ @@ -343,8 +346,11 @@ retry: /* * We consider EPIPE and EAGAIN/EWOULDBLOCK as expected. */ + DIAGNOSTIC_PUSH + DIAGNOSTIC_IGNORE_LOGICAL_OP if (errno == EAGAIN || errno == EWOULDBLOCK || errno == EPIPE) { + DIAGNOSTIC_POP /* * This can happen in non blocking mode. * Nothing was sent. @@ -569,7 +575,10 @@ retry: /* * We consider EPIPE and EAGAIN/EWOULDBLOCK as expected. */ + DIAGNOSTIC_PUSH + DIAGNOSTIC_IGNORE_LOGICAL_OP if (errno == EAGAIN || errno == EWOULDBLOCK) { + DIAGNOSTIC_POP /* * This can happen in non blocking mode. * Nothing was sent. @@ -883,7 +892,10 @@ retry: /* * We consider EPIPE and EAGAIN/EWOULDBLOCK as expected. */ + DIAGNOSTIC_PUSH + DIAGNOSTIC_IGNORE_LOGICAL_OP if (errno == EAGAIN || errno == EWOULDBLOCK) { + DIAGNOSTIC_POP /* * This can happen in non blocking mode. * Nothing was recv.