litex: Enable -Werror=missing-prototypes
This commit is contained in:
parent
b9ecb0fdb4
commit
ac978969f7
|
@ -88,7 +88,7 @@ endif
|
|||
# option to override compiler optimization level, set in boards/$(BOARD)/mpconfigboard.mk
|
||||
CFLAGS += $(OPTIMIZATION_FLAGS)
|
||||
|
||||
CFLAGS += $(INC) -Werror -Wall -std=gnu11 -nostdlib -fshort-enums $(BASE_CFLAGS) $(C_DEFS) $(CFLAGS_MOD) $(COPT)
|
||||
CFLAGS += $(INC) -Werror -Wall -std=gnu11 -nostdlib -fshort-enums $(BASE_CFLAGS) $(C_DEFS) $(CFLAGS_MOD) $(COPT) -Werror=missing-prototypes
|
||||
|
||||
# TODO: check this
|
||||
CFLAGS += -D__START=main -DFOMU
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
#include "supervisor/filesystem.h"
|
||||
#include "supervisor/usb.h"
|
||||
#include "supervisor/shared/stack.h"
|
||||
#include "supervisor/port.h"
|
||||
|
||||
void port_background_task(void) {
|
||||
}
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
#include "py/runtime.h"
|
||||
|
||||
#include "common-hal/microcontroller/Processor.h"
|
||||
#include "shared-bindings/microcontroller/Processor.h"
|
||||
#include "shared-bindings/microcontroller/ResetReason.h"
|
||||
#include "supervisor/shared/translate.h"
|
||||
|
||||
|
|
|
@ -30,6 +30,8 @@
|
|||
#include "py/objtuple.h"
|
||||
#include "py/qstr.h"
|
||||
|
||||
#include "shared-bindings/os/__init__.h"
|
||||
|
||||
STATIC const qstr os_uname_info_fields[] = {
|
||||
MP_QSTR_sysname, MP_QSTR_nodename,
|
||||
MP_QSTR_release, MP_QSTR_version, MP_QSTR_machine
|
||||
|
@ -56,6 +58,6 @@ mp_obj_t common_hal_os_uname(void) {
|
|||
return (mp_obj_t)&os_uname_info_obj;
|
||||
}
|
||||
|
||||
bool common_hal_os_urandom(uint8_t *buffer, uint32_t length) {
|
||||
bool common_hal_os_urandom(uint8_t *buffer, mp_uint_t length) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
#include "py/mphal.h"
|
||||
#include "py/mpstate.h"
|
||||
#include "py/gc.h"
|
||||
#include "supervisor/cpu.h"
|
||||
#include "supervisor/usb.h"
|
||||
|
||||
#include "csr.h"
|
||||
|
@ -54,6 +55,7 @@ extern void SysTick_Handler(void);
|
|||
// be prematurely enabled by interrupt handlers that enable and disable interrupts.
|
||||
extern volatile uint32_t nesting_count;
|
||||
|
||||
void isr(void);
|
||||
__attribute__((section(".ramtext")))
|
||||
void isr(void) {
|
||||
uint8_t irqs = irq_pending() & irq_getmask();
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
// crystals.
|
||||
volatile uint64_t raw_ticks = 0;
|
||||
volatile int subsecond = 0;
|
||||
void SysTick_Handler(void);
|
||||
__attribute__((section(".ramtext")))
|
||||
void SysTick_Handler(void) {
|
||||
timer0_ev_pending_write(1);
|
||||
|
|
Loading…
Reference in New Issue