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:36:45 -0700 |
| commit | 48078964664c891cc49146cdc9f23ff55b703c67 (patch) | |
| tree | 730bd7f9affe51676885b269a2c3c1d721fcc130 | |
| parent | 3ab5d2556b7bd622ea0d2e0be38434eddc97bed5 (diff) | |
| download | poky-48078964664c891cc49146cdc9f23ff55b703c67.tar.gz | |
sdk: The main in the C example should return an int
see C17 (ISO/IEC 9899:2018)
(From yocto-docs rev: 260b386dd2184f9d32547e08d1ed578c45d86cc9)
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 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``:: |
