mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
power64: refactor va_arg in u.h to fix warnings
Bring over conventions from other archs. This issue shows up when you don't put va_end, which our systemcall handlers are guilty of.
This commit is contained in:
parent
025a2d172e
commit
b0a0595371
1 changed files with 4 additions and 4 deletions
|
@ -84,9 +84,9 @@ typedef char* va_list;
|
|||
USED(list)
|
||||
#define va_arg(list, mode)\
|
||||
((sizeof(mode) == 1)?\
|
||||
((mode*)(list += 8))[-1]:\
|
||||
((list += 8), (mode*)list)[-1]:\
|
||||
(sizeof(mode) == 2)?\
|
||||
((mode*)(list += 8))[-1]:\
|
||||
((list += 8), (mode*)list)[-1]:\
|
||||
(sizeof(mode) == 4)?\
|
||||
((mode*)(list += 8))[-1]:\
|
||||
((mode*)(list += sizeof(mode)))[-1])
|
||||
((list += 8), (mode*)list)[-1]:\
|
||||
((list += sizeof(mode)), (mode*)list)[-1])
|
||||
|
|
Loading…
Reference in a new issue