mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-03-13 17:57:12 +08:00
insns.h: change ITEMPLATE_END to not warn on some compilers
The use of negative numbers for some fields in ITEMPLATE_END triggers a nuisance warning at least with Sun CC. There is no reason for it: the only thing that matters in this template is I_none, so declare it that way. See BR 3392372. Reported-by: <noloader@gmail.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
parent
4892f95bb5
commit
7c99db15f0
@ -46,7 +46,7 @@ extern const uint8_t nasm_bytecodes[];
|
||||
/*
|
||||
* this define is used to signify the end of an itemplate
|
||||
*/
|
||||
#define ITEMPLATE_END {-1,-1,{-1,-1,-1,-1,-1},{-1,-1,-1,-1,-1},NULL,0}
|
||||
#define ITEMPLATE_END {I_none,0,{0,},{0,},NULL,0}
|
||||
|
||||
/* Width of Dx and RESx instructions */
|
||||
int const_func idata_bytes(enum opcode opcode);
|
||||
|
Loading…
x
Reference in New Issue
Block a user