diff options
author | Jan Vermaete <jan.vermaete@gmail.com> | 2025-08-09 08:25:47 +0200 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2025-09-19 07:03:31 -0700 |
commit | 5fc83da6b27fed22de045d8804af1b732df5a575 (patch) | |
tree | 633a2895ace7250023082a0a7ec830bb22d411bd | |
parent | 686d908085413506cbace1ed259f1fd883fed68b (diff) | |
download | poky-5fc83da6b27fed22de045d8804af1b732df5a575.tar.gz |
sdk: The main in the C example should return an int
see C17 (ISO/IEC 9899:2018)
(From yocto-docs rev: 1118f1bde785e153c4ddd2bf4e4d70f956fde948)
Signed-off-by: Jan Vermaete <jan.vermaete@gmail.com>
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
(cherry picked from commit 1ebaed299f7ef80a49b68608f45bf25884900d13)
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
-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 296d7d8464..76cb11ddae 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``:: |