Ah.  I begin to see.  You must be using compiler switches, or a version of a 
compiler, that are treating some of those warnings as errors.

We are not; that code isn't being executed yet.  It's a work in progress, 
and Jim hasn't addressed all of the warnings yet.

I will now drop out of this conversation, and let Jim handle it.

> -----Original Message-----
> From: Andreas Schwab <[email protected]>
> Sent: Sunday, October 26, 2025 08:36
> To: Robert Dubner <[email protected]>
> Cc: 'Richard Biener' <[email protected]>; 'James K. Lowden'
> <[email protected]>; [email protected]
> Subject: Re: [committed] cobol: Implement the XML PARSE statement; 
> implement
> POSIX
>
> ../../../libgcobol/xmlparse.cc: In function ‘xmlEntity* getEntity(void*, 
> const
> xmlChar*)’:
> ../../../libgcobol/xmlparse.cc:394:22: error: no return statement in 
> function
> returning non-void [-Werror=return-type]
>   394 | { SAYSO_DATAZ(name); }
>       |                      ^
> ../../../libgcobol/xmlparse.cc:392:38: warning: unused parameter ‘ctx’ [-
> Wunused-parameter]
>   392 | static xmlEntityPtr getEntity(void * ctx,
>       |                               ~~~~~~~^~~
> ../../../libgcobol/xmlparse.cc: In function ‘xmlEntity*
> getParameterEntity(void*, const xmlChar*)’:
> ../../../libgcobol/xmlparse.cc:398:22: error: no return statement in 
> function
> returning non-void [-Werror=return-type]
>   398 | { SAYSO_DATAZ(name); }
>       |                      ^
> ../../../libgcobol/xmlparse.cc:396:47: warning: unused parameter ‘ctx’ [-
> Wunused-parameter]
>   396 | static xmlEntityPtr getParameterEntity(void * ctx,
>       |                                        ~~~~~~~^~~
> ../../../libgcobol/xmlparse.cc: In function ‘int hasExternalSubset(void*)’:
> ../../../libgcobol/xmlparse.cc:401:12: error: no return statement in 
> function
> returning non-void [-Werror=return-type]
>   401 | { SAYSO(); }
>       |            ^
> ../../../libgcobol/xmlparse.cc: In function ‘int hasInternalSubset(void*)’:
> ../../../libgcobol/xmlparse.cc:404:12: error: no return statement in 
> function
> returning non-void [-Werror=return-type]
>   404 | { SAYSO(); }
>       |            ^
> ../../../libgcobol/xmlparse.cc: In function ‘int isStandalone(void*)’:
> ../../../libgcobol/xmlparse.cc:418:12: error: no return statement in 
> function
> returning non-void [-Werror=return-type]
>   418 | { SAYSO(); }
>       |            ^
> ../../../libgcobol/xmlparse.cc: In function ‘xmlParserInput*
> resolveEntity(void*, const xmlChar*, const xmlChar*)’:
> ../../../libgcobol/xmlparse.cc:444:12: error: no return statement in 
> function
> returning non-void [-Werror=return-type]
>   444 | { SAYSO(); }
>       |            ^
> cc1plus: some warnings being treated as errors
> make[3]: *** [Makefile:579: xmlparse.lo] Error 1
> make[3]: Leaving directory 
> '/home/abuild/rpmbuild/BUILD/gcc16-16.0.0+git4629-
> build/gcc-16.0.0+git4629/obj-x86_64-suse-linux/x86_64-suse-linux/libgcobol'
>
> --
> Andreas Schwab, [email protected]
> GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
> "And now for something completely different."

Reply via email to