diff --git a/setup.cfg b/setup.cfg
index 108044490..69ecdba5b 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -31,6 +31,7 @@ ironic_python_agent.hardware_managers =
 
 [pbr]
 autodoc_index_modules = True
+warnerrors = True
 
 [build_sphinx]
 all_files = 1