diff --git a/transport-native-epoll/pom.xml b/transport-native-epoll/pom.xml
index 616b2a8c13..eb6b4c7ae8 100644
--- a/transport-native-epoll/pom.xml
+++ b/transport-native-epoll/pom.xml
@@ -201,7 +201,7 @@
${linux.sendmmsg.support}${glibc.sendmmsg.support}
.*IO_NETTY_SENDMSSG_NOT_FOUND.*
- CFLAGS=-O3 -DIO_NETTY_SENDMMSG_NOT_FOUND -Werror -fno-omit-frame-pointer
+ CFLAGS=-O3 -DIO_NETTY_SENDMMSG_NOT_FOUND -Werror -fno-omit-frame-pointer -Wunused-variable
false
@@ -217,7 +217,7 @@
${jni.compiler.args.cflags}
^((?!CFLAGS=).)*$
- CFLAGS=-O3 -Werror -fno-omit-frame-pointer
+ CFLAGS=-O3 -Werror -fno-omit-frame-pointer -Wunused-variable
false