Skip to content

Commit c8e9e98

Browse files
author
Lluís Vilanova
committed
drivers/unix_socket: Keep compiler happy about warnings
1 parent 5f4dbcb commit c8e9e98

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/drivers/unix_socket.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ void UnixSocketPort::AcceptThread() {
9797
}
9898

9999
static void AcceptThreadHandler(int sig) {
100-
sig = sig;
100+
int arg __attribute__((unused)) = sig; // keep compiler happy
101101
}
102102

103103
CommandResponse UnixSocketPort::Init(const bess::pb::UnixSocketPortArg &arg) {

0 commit comments

Comments
 (0)