0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-10-10 00:25:06 -04:00

Remove unnecessary C99-isms

In order to make it more likely to compile cleanly with "C90 plus long
long" style compilers, make gcc warn for incompatible constructs.
Remove existing constructs (mostly commas at the end of enums) that
aren't compliant.

Ironically enough this was most likely an unintentional omission in
C90...

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin
2016-03-01 22:43:51 -08:00
parent 25da6eaf43
commit 7214d18b40
9 changed files with 28 additions and 26 deletions

View File

@@ -89,7 +89,7 @@ enum symbol_type {
SYMTYPE_LDATA,
SYMTYPE_GDATA,
SYMTYPE_MAX,
SYMTYPE_MAX
};
struct cv8_symbol {
@@ -113,7 +113,7 @@ struct cv8_symbol {
TYPE_REAL80 = 0x0042,
TYPE_REAL128= 0x0043,
TYPE_REAL256= 0x0044,
TYPE_REAL512= 0x0045,
TYPE_REAL512= 0x0045
} symtype;
};