Skip to content

Commit

Permalink
Fix warning about ptr arithmetic with void*
Browse files Browse the repository at this point in the history
  • Loading branch information
HookedBehemoth committed Oct 9, 2024
1 parent 49438db commit 5fb2957
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ SOURCES := source
#---------------------------------------------------------------------------------
ARCH := -march=armv8-a+crc+crypto -mtune=cortex-a57 -mtp=soft -fPIE

CFLAGS := -g -Wall -O2 -ffunction-sections \
CFLAGS := -g -Wall -Wextra -Wpedantic -Werror -O2 -ffunction-sections \
$(ARCH) $(DEFINES)

CFLAGS += $(INCLUDE) -D__SWITCH__
Expand Down
2 changes: 1 addition & 1 deletion source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void __libnx_init(void*, Handle main_thread, void*) {
tv->magic = THREADVARS_MAGIC;
tv->thread_ptr = NULL;
tv->reent = _impure_ptr;
tv->tls_tp = __tls_start-2*sizeof(void*); // subtract size of Thread Control Block (TCB)
tv->tls_tp = (void*)((uintptr_t)__tls_start-2*sizeof(void*)); // subtract size of Thread Control Block (TCB)
tv->handle = main_thread;

while ((armGetSystemTick() / armGetSystemTickFreq()) < 10)
Expand Down

0 comments on commit 5fb2957

Please sign in to comment.