History

doc-rst: linux_tv: supress lots of warnings

The c language parser checks if there are duplicated object definitions. That causes lots of warnings like: WARNING: duplicate C object description of ioctl Let's remove those by telling Sphinx that the language for those objects are c++. The look of the descriptions will be close, and the warnings will be gone. Please notice that we had to keep a few of them as C, as the c++ parser seems to be broken when it finds an enum. Yet, this reduced from 219 warnings to 143, with is a good thing.

Mauro Carvalho Chehab committed 10 years ago

Commit b7e67f61 parent 90ffc7588 files · +104 −104Browse files

Showing the changes to scripts (1 of 88 files). Show all

Unified · Split

scripts/kernel-doc+1−1
@@ -1833,7 +1833,7 @@ sub output_function_rst(%) { · 1832 unmodified lines
18331833 my $oldprefix = $lineprefix;
18341834 my $start;
18351835
1836− print ".. c:function:: ";
1836+ print ".. cpp:function:: ";
18371837 if ($args{'functiontype'} ne "") {
18381838 $start = $args{'functiontype'} . " " . $args{'function'} . " (";
18391839 } else {