Skip to contentSkip to conversation

sdk: The main in the C example should return an int

PATCH Applied Jan Vermaete 2 participants 2 messages Aug 9, 2025 – Sep 17, 2025

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 sdk: The main in the C example should return an int

see C17 (ISO/IEC 9899:2018)

---
 documentation/sdk-manual/working-projects.rst | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
documentation/sdk-manual/working-projects.rst +2 -1
index 4236bcec2..7df73b1b1 100644
@@ -56,9 +56,10 @@ project:
 
          #include <stdio.h>
 
-         main()
+         int main()
              {
                  printf("Hello World!\n");
+                 return 0;
              }
 
    -  ``configure.ac``::
Signature · 1 line
2.39.5
#1 lore raw
Quoted 3 lines · Jan Vermaete

see C17 (ISO/IEC 9899:2018)

Applied, thanks!

[1/1] sdk: The main in the C example should return an int

      commit: 1ebaed299f7ef80a49b68608f45bf25884900d13

Best regards,

Signature · 1 line
Antonin Godard <[email protected]>