From 22fcbe12046b7d6ed7af5d7a47258f1f2ebd56c1 Mon Sep 17 00:00:00 2001 From: Henrik Gramner Date: Tue, 9 Jun 2020 21:04:58 +0200 Subject: [PATCH] x86inc: Fix warnings when using nasm 2.15 --- common/x86/x86inc.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/x86/x86inc.asm b/common/x86/x86inc.asm index 3fdfbc95..736bad5d 100644 --- a/common/x86/x86inc.asm +++ b/common/x86/x86inc.asm @@ -356,7 +356,7 @@ DECLARE_REG_TMP_SIZE 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14 %define vzeroupper_required (mmsize > 16 && (ARCH_X86_64 == 0 || xmm_regs_used > 16 || notcpuflag(avx512))) %define high_mm_regs (16*cpuflag(avx512)) -%macro ALLOC_STACK 1-2 0 ; stack_size, n_xmm_regs (for win64 only) +%macro ALLOC_STACK 0-2 0, 0 ; stack_size, n_xmm_regs (for win64 only) %ifnum %1 %if %1 != 0 %assign %%pad 0 @@ -401,7 +401,7 @@ DECLARE_REG_TMP_SIZE 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14 %endif %endmacro -%macro SETUP_STACK_POINTER 1 +%macro SETUP_STACK_POINTER 0-1 0 %ifnum %1 %if %1 != 0 && required_stack_alignment > STACK_ALIGNMENT %if %1 > 0 -- 2.40.0