mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
docs: <pre> cannot be nested in <p>
xsltproc complained about this.
This commit is contained in:
parent
2ef091efcc
commit
b62cab6e09
@ -128,20 +128,19 @@
|
|||||||
|
|
||||||
<p>
|
<p>
|
||||||
For variadic macros, stick with C99 syntax:
|
For variadic macros, stick with C99 syntax:
|
||||||
|
</p>
|
||||||
<pre>
|
<pre>
|
||||||
#define vshPrint(_ctl, ...) fprintf(stdout, __VA_ARGS__)
|
#define vshPrint(_ctl, ...) fprintf(stdout, __VA_ARGS__)
|
||||||
</pre>
|
</pre>
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>Use parenthesis when checking if a macro is defined, and use
|
<p>Use parenthesis when checking if a macro is defined, and use
|
||||||
indentation to track nesting:
|
indentation to track nesting:
|
||||||
|
</p>
|
||||||
<pre>
|
<pre>
|
||||||
#if defined(HAVE_POSIX_FALLOCATE) && !defined(HAVE_FALLOCATE)
|
#if defined(HAVE_POSIX_FALLOCATE) && !defined(HAVE_FALLOCATE)
|
||||||
# define fallocate(a,ignored,b,c) posix_fallocate(a,b,c)
|
# define fallocate(a,ignored,b,c) posix_fallocate(a,b,c)
|
||||||
#endif
|
#endif
|
||||||
</pre>
|
</pre>
|
||||||
</p>
|
|
||||||
|
|
||||||
<h2><a href="types">C types</a></h2>
|
<h2><a href="types">C types</a></h2>
|
||||||
|
|
||||||
@ -552,9 +551,11 @@
|
|||||||
also rebuild locally, run 'make check syntax-check', and make sure you
|
also rebuild locally, run 'make check syntax-check', and make sure you
|
||||||
don't raise errors. Try to look for warnings too; for example,
|
don't raise errors. Try to look for warnings too; for example,
|
||||||
configure with
|
configure with
|
||||||
|
</p>
|
||||||
<pre>
|
<pre>
|
||||||
--enable-compile-warnings=error
|
--enable-compile-warnings=error
|
||||||
</pre>
|
</pre>
|
||||||
|
<p>
|
||||||
which adds -Werror to compile flags, so no warnings get missed
|
which adds -Werror to compile flags, so no warnings get missed
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user