diff options
author | Jan Vermaete <jan.vermaete@gmail.com> | 2025-08-09 08:25:47 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-09-16 12:09:41 +0100 |
commit | d9bfb32f39c6199f75f97ef93e87342d660274fe (patch) | |
tree | 7faed84821eb654d4fb75ab996620ed0a9d7ae3b /documentation | |
parent | 481764525cdd607649e78a36be923b70b034e500 (diff) | |
download | poky-d9bfb32f39c6199f75f97ef93e87342d660274fe.tar.gz |
sdk: The main in the C example should return an int
see C17 (ISO/IEC 9899:2018)
(From yocto-docs rev: 1ebaed299f7ef80a49b68608f45bf25884900d13)
Signed-off-by: Jan Vermaete <jan.vermaete@gmail.com>
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/sdk-manual/working-projects.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/documentation/sdk-manual/working-projects.rst b/documentation/sdk-manual/working-projects.rst index 4236bcec24..7df73b1b17 100644 --- a/documentation/sdk-manual/working-projects.rst +++ b/documentation/sdk-manual/working-projects.rst | |||
@@ -56,9 +56,10 @@ project: | |||
56 | 56 | ||
57 | #include <stdio.h> | 57 | #include <stdio.h> |
58 | 58 | ||
59 | main() | 59 | int main() |
60 | { | 60 | { |
61 | printf("Hello World!\n"); | 61 | printf("Hello World!\n"); |
62 | return 0; | ||
62 | } | 63 | } |
63 | 64 | ||
64 | - ``configure.ac``:: | 65 | - ``configure.ac``:: |