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