From: Dan Liew Date: Tue, 22 Jul 2014 15:07:35 +0000 (+0000) Subject: Treat warnings in Sphinx as errors. The reasons for doing this are... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0d38c3a7266037c0f9c5fe42b661418989474c16;p=platform%2Fupstream%2Fllvm.git Treat warnings in Sphinx as errors. The reasons for doing this are... - When CMake builds the documentation with sphinx-build it treats warnings as errors. We should be consistent with what we do in CMake. - Having warnings treated as errors will hopefully encourage developers to write documentation correctly. llvm-svn: 213661 --- diff --git a/llvm/docs/Makefile.sphinx b/llvm/docs/Makefile.sphinx index 21f6648..b12168c 100644 --- a/llvm/docs/Makefile.sphinx +++ b/llvm/docs/Makefile.sphinx @@ -10,7 +10,7 @@ BUILDDIR = _build # Internal variables. PAPEROPT_a4 = -D latex_paper_size=a4 PAPEROPT_letter = -D latex_paper_size=letter -ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . +ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) -W . # the i18n builder cannot share the environment and doctrees with the others I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .