mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Silence gcc warnings, even in Travis
-Wno-missing-field-initializers is needed because of false positives over {0} initialization
This commit is contained in:
parent
2449a17add
commit
1e5c95d8d4
@ -1,7 +1,7 @@
|
|||||||
.PHONY: all clean
|
.PHONY: all clean
|
||||||
|
|
||||||
CC := gcc
|
CC := gcc
|
||||||
CFLAGS := -O3 -std=c99 -Wall -Wextra
|
CFLAGS := -O3 -std=c99 -Wall -Wextra -Wno-missing-field-initializers
|
||||||
|
|
||||||
tools := \
|
tools := \
|
||||||
lzcomp \
|
lzcomp \
|
||||||
|
@ -128,7 +128,7 @@ void write_commands_to_textfile (const char * file, const struct command * comma
|
|||||||
|
|
||||||
void write_command_to_textfile (FILE * fp, struct command command, const unsigned char * input_stream) {
|
void write_command_to_textfile (FILE * fp, struct command command, const unsigned char * input_stream) {
|
||||||
if ((!command.count) || (command.count > 1024)) error_exit(2, "invalid command in output stream");
|
if ((!command.count) || (command.count > 1024)) error_exit(2, "invalid command in output stream");
|
||||||
int rv, pos;
|
int rv = -1, pos;
|
||||||
const char * kind;
|
const char * kind;
|
||||||
switch (command.command) {
|
switch (command.command) {
|
||||||
case 0:
|
case 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user