GCC 7 support and cleanup compiler warnings
This commit is contained in:
parent
1342ce812b
commit
6ce74cf9c8
4 changed files with 19 additions and 8 deletions
|
@ -29,7 +29,7 @@ $(error RASPPI must be one of: 0, 1, 2, 3)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
AFLAGS += $(ARCH)
|
AFLAGS += $(ARCH)
|
||||||
CFLAGS += $(ARCH) -Wall -Wno-psabi -fsigned-char -fno-builtin -Ofast -DNDEBUG
|
CFLAGS += $(ARCH) -Wall -Wno-unused-variable -Wno-unused-but-set-variable -Wno-psabi -fsigned-char -fno-builtin -Ofast -DNDEBUG
|
||||||
CPPFLAGS := $(CFLAGS) $(CPPFLAGS) -fno-exceptions -fno-rtti -std=c++0x -Wno-write-strings
|
CPPFLAGS := $(CFLAGS) $(CPPFLAGS) -fno-exceptions -fno-rtti -std=c++0x -Wno-write-strings
|
||||||
CFLAGS += -fno-delete-null-pointer-checks -fdata-sections -ffunction-sections -u _printf_float -std=gnu99
|
CFLAGS += -fno-delete-null-pointer-checks -fdata-sections -ffunction-sections -u _printf_float -std=gnu99
|
||||||
|
|
||||||
|
|
|
@ -87,6 +87,17 @@ void _exit(int status)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void _fini(int status)
|
||||||
|
{
|
||||||
|
/* Stop the compiler complaining about unused variables by "using" it */
|
||||||
|
(void) status;
|
||||||
|
|
||||||
|
while (1)
|
||||||
|
{
|
||||||
|
/* TRAP HERE */
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* There's currently no implementation of a file system because there's no
|
/* There's currently no implementation of a file system because there's no
|
||||||
file system! */
|
file system! */
|
||||||
int _close(int file)
|
int _close(int file)
|
||||||
|
|
|
@ -531,10 +531,10 @@ public:
|
||||||
invertIECInputs = value;
|
invertIECInputs = value;
|
||||||
if (value)
|
if (value)
|
||||||
{
|
{
|
||||||
PI_Atn = ~PI_Atn;
|
PI_Atn = !PI_Atn;
|
||||||
PI_Data = ~PI_Data;
|
PI_Data = !PI_Data;
|
||||||
PI_Clock = ~PI_Clock;
|
PI_Clock = !PI_Clock;
|
||||||
PI_Reset = ~PI_Reset;
|
PI_Reset = !PI_Reset;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue