mirror of
https://github.com/samba-team/samba.git
synced 2025-02-12 21:58:10 +03:00
Add an item about the __va_copy macro to prevent SEGV's on 390 and PPC Linux.
(This used to be commit 443ba282be79e2b7259950fffbd7fe9bb4cabf8c)
This commit is contained in:
parent
eed5094264
commit
f627be5ec2
@ -59,6 +59,11 @@ Here are some other suggestions:
|
||||
6) explicitly add const qualifiers on parm passing in functions where parm
|
||||
is input only (somewhat controversial but const can be #defined away)
|
||||
|
||||
7) when passing a va_list as an arg, or assigning one to another, check
|
||||
for HAVE_VA_COPY, and use it if it exists.
|
||||
reason: on some platforms, va_list is a struct that must be
|
||||
initialized in each function...can SEGV if you don't.
|
||||
|
||||
8) discourage use of threads
|
||||
reason: portability (also see architecture.doc)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user