diff options
| author | Jan Vermaete <jan.vermaete@gmail.com> | 2025-08-09 08:25:47 +0200 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2025-09-17 15:32:27 -0700 |
| commit | 627f697dac12d343cdf927b4c82fd48361abb4a2 (patch) | |
| tree | d960fcdfde4144e0ece1187de92cbe14b36ecbd6 /documentation/sdk-manual | |
| parent | 7ec60228eb4fb51f2431fb7b242ba54d780a3f35 (diff) | |
| download | poky-627f697dac12d343cdf927b4c82fd48361abb4a2.tar.gz | |
sdk: The main in the C example should return an int
see C17 (ISO/IEC 9899:2018)
(From yocto-docs rev: 9b7a4b503f6d0f2cd8b209ba9348a067a3846260)
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>
Diffstat (limited to 'documentation/sdk-manual')
| -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``:: |
