zephyr/tests/lib
Keith Packard 0b90fd5adf samples, tests, boards: Switch main return type from void to int
As both C and C++ standards require applications running under an OS to
return 'int', adapt that for Zephyr to align with those standard. This also
eliminates errors when building with clang when not using -ffreestanding,
and reduces the need for compiler flags to silence warnings for both clang
and gcc.

Most of these changes were automated using coccinelle with the following
script:

@@
@@
- void
+ int
main(...) {
	...
-	return;
+	return 0;
	...
}

Approximately 40 files had to be edited by hand as coccinelle was unable to
fix them.

Signed-off-by: Keith Packard <keithp@keithp.com>
2023-04-14 07:49:41 +09:00
..
c_lib libc: fix armclang compiler warnings with is*() functions 2023-04-04 13:47:34 +02:00
cbprintf_fp samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
cbprintf_package treewide: Use CONFIG_CPP instead of CONFIG_CPLUSPLUS 2023-01-13 17:42:55 -05:00
cmsis_dsp yamllint: fix all yamllint line-length errors 2023-01-04 01:16:45 +09:00
cmsis_nn
cpp cpp: Add rtio headers to cxx test 2023-04-13 09:59:31 +02:00
devicetree init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
fdtable ztest: remove the obsolete NULL appended to zassert macros 2022-09-09 07:05:38 -04:00
gui/lvgl tests: lib: gui: lvgl: Switch to FIXED_PARTITION_ macros 2022-09-06 09:56:37 +02:00
hash_function tests: lib: hash_function: tests for sys_hash32 2023-02-22 19:14:05 +01:00
hash_map tests: hash_map: Remove check that usigned >= 0 2023-03-07 08:34:50 +01:00
heap boards: esp32s3_devkitm: initial soc board support 2023-02-27 19:41:33 +01:00
heap_align tests: fix various test identifiers 2023-02-06 10:06:10 +01:00
json json: Increase max number of descriptor elements from 30 to 62 2023-01-26 09:51:54 +00:00
linear_range sys: linear_range: fix return value when window is outside range 2023-02-20 10:43:26 +01:00
mem_alloc tests: lib: mem_alloc: skip reallocarray test on arm clang 2023-03-20 12:23:45 -04:00
mem_blocks tests: fix various test identifiers 2023-02-06 10:06:10 +01:00
mem_blocks_stats tests: fix various test identifiers 2023-02-06 10:06:10 +01:00
mpsc_pbuf tests/lib/mpsc_pbuf: Increase timeout on concurrent test to 120 seconds 2023-04-10 22:02:46 +09:00
newlib tests: Remove explicit newlib nano override 2022-10-19 16:02:51 +02:00
notify lib: notify: build sys-notify conditionally. 2022-10-03 10:18:15 +02:00
onoff lib: onoff: add a config for on-off and build conditionally 2022-10-03 10:18:15 +02:00
p4workq tests: fix various test identifiers 2023-02-06 10:06:10 +01:00
ringbuffer yamllint: indentation: fix files in tests/ 2023-01-04 14:23:53 +01:00
smf yamllint: indentation: fix files in tests/ 2023-01-04 14:23:53 +01:00
sprintf tests: fix various test identifiers 2023-02-06 10:06:10 +01:00
spsc_pbuf tests: fix various test identifiers 2023-02-06 10:06:10 +01:00
sys_util include/sys/util: Fix WAIT_FOR for POSIX_ARCH 2023-03-03 17:12:30 +01:00
thrift/ThriftTest tests: lib: thrift: add tests for the thrift module 2023-02-09 20:30:21 +09:00
time
uoscore