Skip to content

Commit

Permalink
misc:Fix gcc 13.2 compile issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
iabdalkader committed Jan 17, 2024
1 parent 64f6f22 commit 6e252c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions extmod/extmod.mk
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ SRC_LIB_LIBM_DBL_SQRT_HW_C += lib/libm_dbl/thumb_vfp_sqrt.c

# Too many warnings in libm_dbl, disable for now.
$(BUILD)/lib/libm_dbl/%.o: CFLAGS += -Wno-double-promotion -Wno-float-conversion
$(BUILD)/lib/libm/kf_rem_pio2.o: CFLAGS += -Wno-maybe-uninitialized

################################################################################
# VFS FAT FS
Expand Down
5 changes: 1 addition & 4 deletions ports/stm32/posix_helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <stdint.h>
#include <stdio.h>
#include <errno.h>
#include <time.h>
#include "py/mphal.h"
#include "py/gc.h"

Expand Down Expand Up @@ -67,7 +68,3 @@ uint32_t htonl(uint32_t netlong) {
time_t time(time_t *t) {
return mp_hal_ticks_ms() / 1000;
}

time_t mktime(void *tm) {
return 0;
}

0 comments on commit 6e252c7

Please sign in to comment.