mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 22:22:17 +00:00
manpage: capital section headings, updated -fcorrect-logic description, added -Wunknown-attribute
This commit is contained in:
parent
e8cd9411b0
commit
96ddc217da
1 changed files with 9 additions and 5 deletions
14
doc/gmqcc.1
14
doc/gmqcc.1
|
@ -116,7 +116,7 @@ them.
|
||||||
-f\fIno-\fRcorrect-ternary
|
-f\fIno-\fRcorrect-ternary
|
||||||
.fi
|
.fi
|
||||||
.in
|
.in
|
||||||
.SH Warnings
|
.SH COMPILE WARNINGS
|
||||||
.TP
|
.TP
|
||||||
.B -Wunused-variable
|
.B -Wunused-variable
|
||||||
Generate a warning about variables which are declared but never used.
|
Generate a warning about variables which are declared but never used.
|
||||||
|
@ -238,7 +238,11 @@ or code after a call to a function marked as 'noreturn'.
|
||||||
.B -Wdebug
|
.B -Wdebug
|
||||||
Enable some warnings added in order to help debugging in the compiler.
|
Enable some warnings added in order to help debugging in the compiler.
|
||||||
You won't need this.
|
You won't need this.
|
||||||
.SH Compile Flags
|
.B -Wunknown-attribute
|
||||||
|
Warn on an unknown attribute. The warning will inlclude only the first
|
||||||
|
token inside the enclosing attribute-brackets. This may change when
|
||||||
|
the actual attribute syntax is better defined.
|
||||||
|
.SH COMPILE FLAGS
|
||||||
.TP
|
.TP
|
||||||
.B -foverlap-locals
|
.B -foverlap-locals
|
||||||
Allow local variables to overlap with each other if they don't
|
Allow local variables to overlap with each other if they don't
|
||||||
|
@ -305,9 +309,9 @@ prevents components from being listed.
|
||||||
.TP
|
.TP
|
||||||
.B -fcorrect-logic
|
.B -fcorrect-logic
|
||||||
Most QC compilers translate if(a_vector) directly as an IF on the
|
Most QC compilers translate if(a_vector) directly as an IF on the
|
||||||
vector, which means only the x-component is checked. This causes all
|
vector, which means only the x-component is checked. This causes
|
||||||
non-float types to use an appropriate NOT instruction on all logic
|
vectors to be cast to actual booleans via a NOT_V and, if necessary, a
|
||||||
operations and invert their use.
|
NOT_F chained to it.
|
||||||
.in +4
|
.in +4
|
||||||
.nf
|
.nf
|
||||||
if (a_vector) // becomes
|
if (a_vector) // becomes
|
||||||
|
|
Loading…
Reference in a new issue