Message ID | 20240529032948.150704-1-raj.khem@gmail.com |
---|---|
State | New |
Headers | show |
Series | [meta-oe,1/4] ckermit: Define return type for main | expand |
diff --git a/meta-oe/recipes-support/ckermit/ckermit_302.bb b/meta-oe/recipes-support/ckermit/ckermit_302.bb index 3525f7ba02..72a2e16e45 100644 --- a/meta-oe/recipes-support/ckermit/ckermit_302.bb +++ b/meta-oe/recipes-support/ckermit/ckermit_302.bb @@ -45,7 +45,7 @@ do_compile () { -DNORESEND -DNOAUTODL -DNOSTREAMING -DNOHINTS -DNOCKXYZ -DNOLEARN \ -DNOMKDIR -DNOPERMS -DNOCKTIMERS -DNOCKREGEX -DNOREALPATH \ -DCK_SMALL -DNOLOGDIAL -DNORENAME -DNOWHATAMI \ - -DNOARROWKEYS" + -DNOARROWKEYS -DMAINTYPE=int" } do_install () {
Newer compilers e.g. clang19+ will treat implicit function prototypes as errors, therefore define main() with a valid return type Fixes ckwart.c:531:1: error: return type defaults to ‘int’ [-Wimplicit-int] 531 | main(argc,argv) int argc; char **argv; { | ^~~~ Signed-off-by: Khem Raj <raj.khem@gmail.com> --- meta-oe/recipes-support/ckermit/ckermit_302.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)