Skip to content

Commit e3431d3

Browse files
committed
Fix -Wparentheses in posix/isc_ipc
1 parent 4ba14d5 commit e3431d3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/common/os/posix/isc_ipc.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,12 @@ struct sig
102102
typedef sig *SIG;
103103

104104
// flags
105-
const USHORT SIG_user = 0; // Our routine
106-
const USHORT SIG_client = 1; // Not our routine
107-
const USHORT SIG_informs = 2; // routine tells us whether to chain
105+
constexpr USHORT SIG_user = 0; // Our routine
106+
constexpr USHORT SIG_client = 1; // Not our routine
107+
constexpr USHORT SIG_informs = 2; // routine tells us whether to chain
108108

109-
//const SLONG SIG_informs_continue = 0; // continue on signal processing
110-
const SLONG SIG_informs_stop = 1; // stop signal processing
109+
//constexpr SLONG SIG_informs_continue = 0; // continue on signal processing
110+
constexpr SLONG SIG_informs_stop = 1; // stop signal processing
111111

112112
namespace {
113113
SIG volatile signals = NULL;
@@ -281,7 +281,7 @@ void ISC_signal_cancel(int signal_number, FPTR_VOID_PTR handler, void* arg)
281281

282282
Firebird::MutexLockGuard guard(sigMutex->mutex, "ISC_signal_cancel");
283283

284-
for (ptr = &signals; sig = *ptr;) {
284+
for (ptr = &signals; (sig = *ptr);) {
285285
if (sig->sig_signal == signal_number &&
286286
(handler == NULL ||
287287
(sig->sig_routine.user == handler && sig->sig_arg == arg)))

0 commit comments

Comments
 (0)