From 9813fb56d22acad36d70158335b8ee9f4a05ad89 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 28 May 2024 19:13:14 -0700 Subject: [PATCH] ckermit: Define return type for main MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- meta-oe/recipes-support/ckermit/ckermit_302.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-oe/recipes-support/ckermit/ckermit_302.bb b/meta-oe/recipes-support/ckermit/ckermit_302.bb index 53f2b9d2c5..1ee776cefe 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 () {