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>
|
||
|---|---|---|
| .. | ||
| boards | ||
| src | ||
| CMakeLists.txt | ||
| prj.conf | ||
| README.rst | ||
| sample.yaml | ||
.. _character_frame_buffer_sample: Character frame buffer ###################### Overview ******** This sample displays character strings using the Character Frame Buffer (CFB) subsystem framework. Requirements ************ This sample requires a supported board and CFB-supporting display, such as the :ref:`reel_board`. Building and Running ******************** Build this sample application with the following commands: .. zephyr-app-commands:: :zephyr-app: samples/subsys/display/cfb :board: reel_board :goals: build :compact: See :ref:`reel_board` on how to flash the build.