From fad5332fbcf3309739e1b1569c1329d3eb2705c3 Mon Sep 17 00:00:00 2001 From: graham sanderson Date: Sat, 23 Nov 2024 14:23:09 -0600 Subject: [PATCH] fix host build and remove warning --- binary_info/CMakeLists.txt | 4 ++-- uart/hello_uart/hello_uart.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/binary_info/CMakeLists.txt b/binary_info/CMakeLists.txt index 807120bed..a7ad01e04 100644 --- a/binary_info/CMakeLists.txt +++ b/binary_info/CMakeLists.txt @@ -1,2 +1,2 @@ -add_subdirectory_exclude_platforms(blink_any) -add_subdirectory_exclude_platforms(hello_anything) +add_subdirectory_exclude_platforms(blink_any host) +add_subdirectory_exclude_platforms(hello_anything host) diff --git a/uart/hello_uart/hello_uart.c b/uart/hello_uart/hello_uart.c index 60a3f49fe..d0287d831 100644 --- a/uart/hello_uart/hello_uart.c +++ b/uart/hello_uart/hello_uart.c @@ -39,6 +39,7 @@ int main() { // Send out a string, with CR/LF conversions uart_puts(UART_ID, " Hello, UART!\n"); + return 0; } /// \end::hello_uart[]