Fixed compiler warnings

This commit is contained in:
Alex
2022-12-21 20:05:57 +02:00
parent 48e8f0c513
commit cddf0426e3
28 changed files with 483 additions and 81 deletions

View File

@ -15,7 +15,7 @@ static inline SafeFunction __no_instrument_function void profiler_uart_wrapper(c
bool renable = EnableProfiler;
EnableProfiler = false;
UART(COM2).Write(c);
(void)unused;
UNUSED(unused);
if (renable)
EnableProfiler = true;
}

View File

@ -41,7 +41,7 @@ struct gcov_info
static inline SafeFunction __no_instrument_function void gcov_uart_wrapper(char c, void *unused)
{
UART(COM2).Write(c);
(void)unused;
UNUSED(unused);
}
// TODO: Implement
@ -60,8 +60,12 @@ EXTERNC SafeFunction __no_instrument_function void __gcov_flush(void)
EXTERNC SafeFunction __no_instrument_function void __gcov_merge_add(gcov_type *counters, unsigned int n_counters)
{
UNUSED(counters);
UNUSED(n_counters);
}
EXTERNC SafeFunction __no_instrument_function void __gcov_merge_single(gcov_type *counters, unsigned int n_counters)
{
UNUSED(counters);
UNUSED(n_counters);
}

View File

@ -9,11 +9,13 @@ using namespace UniversalAsynchronousReceiverTransmitter;
static inline SafeFunction __no_instrument_function void gprof_uart_wrapper(char c, void *unused)
{
UART(COM2).Write(c);
(void)unused;
UNUSED(unused);
}
EXTERNC SafeFunction __no_instrument_function void mcount(unsigned long frompc, unsigned long selfpc)
{
// TODO: Implement
/* https://docs.kernel.org/trace/ftrace-design.html */
UNUSED(frompc);
UNUSED(selfpc);
}