diff --git a/hadoop-project/pom.xml b/hadoop-project/pom.xml
index 9d1886b3a32..8385e505179 100644
--- a/hadoop-project/pom.xml
+++ b/hadoop-project/pom.xml
@@ -2267,11 +2267,11 @@
true
${javac.version}
-
-
-
- 9999
-
+
+ -Xlint
+ -Xlint:unchecked
+ -Xmaxwarns=9999
+