From: Theo Buehler Subject: Re: fix configure script for x11/bbdate and x11/fluxter (-Wimplicit-int) To: ports@openbsd.org Date: Tue, 27 Jan 2026 21:07:32 +0100 On Tue, Jan 27, 2026 at 08:55:02PM +0100, Claudio Jeker wrote: > These two configure scripts still use the main() { return 0; } test > which fails with -Wimplicit-int using ports-gcc. > > Simple fixes ok > -- > :wq Claudio > > Index: x11/bbdate/patches/patch-configure > =================================================================== > RCS file: x11/bbdate/patches/patch-configure > diff -N x11/bbdate/patches/patch-configure > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ x11/bbdate/patches/patch-configure 7 Dec 2025 16:48:44 -0000 > @@ -0,0 +1,12 @@ > +Index: configure > +--- configure.orig > ++++ configure > +@@ -982,7 +982,7 @@ cat > conftest.$ac_ext << EOF > + #line 983 "configure" > + #include "confdefs.h" > + > +-main(){return(0);} > ++int main(void){return(0);} > + EOF > + if { (eval echo configure:988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then > + ac_cv_prog_cc_works=yes > Index: x11/fluxter/patches/patch-configure > =================================================================== > RCS file: x11/fluxter/patches/patch-configure > diff -N x11/fluxter/patches/patch-configure > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ x11/fluxter/patches/patch-configure 9 Dec 2025 21:03:45 -0000 > @@ -0,0 +1,12 @@ > +Index: configure > +--- configure.orig > ++++ configure > +@@ -1062,7 +1062,7 @@ cat > conftest.$ac_ext << EOF > + #line 1063 "configure" > + #include "confdefs.h" > + > +-main(){return(0);} > ++int main(void){return(0);} > + EOF > + if { (eval echo configure:1068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then > + ac_cv_prog_cc_works=yes >