mirror of
https://github.com/yasm/yasm
synced 2026-08-26 22:26:05 -04:00
* configure.ac: Reorganize and add a few more extra GCC warnings.
* x86id.re (YYFILL): Silence "empty if" warnings. * lc3bid.re (YYFILL): Likewise. * elf.c (elf_null_machine): Fully specify initializer. svn path=/trunk/yasm/; revision=1195
This commit is contained in:
parent
1a19e5c44c
commit
1044d6df03
4 changed files with 27 additions and 4 deletions
23
configure.ac
23
configure.ac
|
|
@ -157,7 +157,28 @@ if test "$USE_MAINTAINER_MODE" = "yes"; then
|
|||
|
||||
# Enable more warnings
|
||||
if test "$GCC" = "yes"; then
|
||||
MORE_CFLAGS="$MORE_CFLAGS -Waggregate-return -Wbad-function-cast -Wcast-align -Wcast-qual -Wconversion -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wsign-compare -Wstrict-prototypes -Wwrite-strings"
|
||||
MORE_CFLAGS="$MORE_CFLAGS -W"
|
||||
MORE_CFLAGS="$MORE_CFLAGS -Waggregate-return"
|
||||
MORE_CFLAGS="$MORE_CFLAGS -Wbad-function-cast"
|
||||
MORE_CFLAGS="$MORE_CFLAGS -Wcast-align"
|
||||
MORE_CFLAGS="$MORE_CFLAGS -Wcast-qual"
|
||||
MORE_CFLAGS="$MORE_CFLAGS -Wchar-subscripts"
|
||||
MORE_CFLAGS="$MORE_CFLAGS -Wconversion"
|
||||
MORE_CFLAGS="$MORE_CFLAGS -Wdeclaration-after-statement"
|
||||
MORE_CFLAGS="$MORE_CFLAGS -Wendif-labels"
|
||||
MORE_CFLAGS="$MORE_CFLAGS -Winline"
|
||||
MORE_CFLAGS="$MORE_CFLAGS -Wmissing-declarations"
|
||||
MORE_CFLAGS="$MORE_CFLAGS -Wmissing-prototypes"
|
||||
MORE_CFLAGS="$MORE_CFLAGS -Wnested-externs"
|
||||
MORE_CFLAGS="$MORE_CFLAGS -Wpointer-arith"
|
||||
MORE_CFLAGS="$MORE_CFLAGS -Wreturn-type"
|
||||
MORE_CFLAGS="$MORE_CFLAGS -Wshadow"
|
||||
MORE_CFLAGS="$MORE_CFLAGS -Wsign-compare"
|
||||
MORE_CFLAGS="$MORE_CFLAGS -Wstrict-prototypes"
|
||||
MORE_CFLAGS="$MORE_CFLAGS -Wswitch"
|
||||
MORE_CFLAGS="$MORE_CFLAGS -Wwrite-strings"
|
||||
MORE_CFLAGS="$MORE_CFLAGS -Wno-undef"
|
||||
MORE_CFLAGS="$MORE_CFLAGS -Wno-unused-parameter"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
|||
|
|
@ -311,7 +311,7 @@ yasm_lc3b__finalize_insn(yasm_arch *arch, yasm_bytecode *bc,
|
|||
#define YYCURSOR id
|
||||
#define YYLIMIT id
|
||||
#define YYMARKER marker
|
||||
#define YYFILL(n)
|
||||
#define YYFILL(n) (void)(n)
|
||||
|
||||
/*!re2c
|
||||
any = [\000-\377];
|
||||
|
|
|
|||
|
|
@ -2436,7 +2436,7 @@ yasm_x86__finalize_insn(yasm_arch *arch, yasm_bytecode *bc,
|
|||
#define YYCURSOR id
|
||||
#define YYLIMIT id
|
||||
#define YYMARKER marker
|
||||
#define YYFILL(n)
|
||||
#define YYFILL(n) (void)(n)
|
||||
|
||||
/*!re2c
|
||||
any = [\000-\377];
|
||||
|
|
|
|||
|
|
@ -61,7 +61,9 @@ static const elf_machine_handler *elf_machine_handlers[] =
|
|||
&elf_machine_handler_x86_amd64,
|
||||
NULL
|
||||
};
|
||||
static const elf_machine_handler elf_null_machine = {0};
|
||||
static const elf_machine_handler elf_null_machine = {0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0};
|
||||
static elf_machine_handler const *elf_march = &elf_null_machine;
|
||||
static yasm_symrec **elf_ssyms;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue