qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] docs: Print warning when running Sphinx 3.x and newer


From: Eduardo Habkost
Subject: Re: [PATCH] docs: Print warning when running Sphinx 3.x and newer
Date: Thu, 15 Oct 2020 12:03:43 -0400

On Thu, Oct 15, 2020 at 01:38:49PM +0100, Peter Maydell wrote:
> On Wed, 14 Oct 2020 at 23:34, Eduardo Habkost <ehabkost@redhat.com> wrote:
> >
> > This won't prevent the docs from being built, but will let people
> > know Sphinx 3.x is not fully supported yet.
> >
> > Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
> 
> Sphinx 3.0.1 works fine for me, so I think we probably
> want to set the cutoff somewhere else than just 3.0.

Sphinx 3.0.0+ doesn't know how to handle macro documentation generated by
kernel-doc:

  Running Sphinx v3.0.1
  building [mo]: targets for 0 po files that are out of date
  building [html]: targets for 22 source files that are out of date
  updating environment: [new config] 22 added, 0 changed, 0 removed
  reading sources... [100%] testing
  
  Warning, treated as error:
  /home/ehabkost/rh/proj/virt/qemu/docs/../include/qom/object.h:155:Error in 
declarator
  If declarator-id with parameters (e.g., 'void f(int arg)'):
    Invalid C declaration: Expected identifier in nested name. [error at 25]
      DECLARE_INSTANCE_CHECKER ( InstanceType,  OBJ_NAME,  TYPENAME)
      -------------------------^
  If parenthesis in noptr-declarator (e.g., 'void (*f(int arg))(double)'):
    Error in declarator or parameters
    Invalid C declaration: Expecting "(" in parameters. [error at 39]
      DECLARE_INSTANCE_CHECKER ( InstanceType,  OBJ_NAME,  TYPENAME)
      ---------------------------------------^
  
  make: *** [Makefile.ninja:9897: docs/devel.stamp] Error 2
  make: *** Deleting file 'docs/devel.stamp'


-- 
Eduardo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]