https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122399
Bug ID: 122399
Summary: [16 regression] Lots of -Wunused-parameter,
-Wunused-function in libgcobol
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Keywords: build
Severity: normal
Priority: P3
Component: cobol
Assignee: unassigned at gcc dot gnu.org
Reporter: sjames at gcc dot gnu.org
Target Milestone: ---
I see a lot of new -Wunused-parameter and -Wunused-function in libgcobol's XML
handling:
```
[...]
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libgcobol/xmlparse.cc:
In function ‘void attributeDecl(void*, const xmlChar*, const xmlChar*, int,
int, const xmlChar*, xmlEnumerationPtr)’:
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libgcobol/xmlparse.cc:303:34:
warning: unused parameter ‘ctx’ [-Wunused-parameter]
303 | static void attributeDecl(void * ctx,
| ~~~~~~~^~~
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libgcobol/xmlparse.cc:306:31:
warning: unused parameter ‘type’ [-Wunused-parameter]
306 | int type,
| ~~~~^~~~
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libgcobol/xmlparse.cc:307:31:
warning: unused parameter ‘def’ [-Wunused-parameter]
307 | int def,
| ~~~~^~~
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libgcobol/xmlparse.cc:309:45:
warning: unused parameter ‘tree’ [-Wunused-parameter]
309 | xmlEnumerationPtr tree)
| ~~~~~~~~~~~~~~~~~~^~~~
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libgcobol/xmlparse.cc:
In function ‘void cdataBlock(void*, const xmlChar*, int)’:
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libgcobol/xmlparse.cc:315:31:
warning: unused parameter ‘ctx’ [-Wunused-parameter]
315 | static void cdataBlock(void * ctx,
| ~~~~~~~^~~
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libgcobol/xmlparse.cc:
In function ‘void characters(void*, const xmlChar*, int)’:
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libgcobol/xmlparse.cc:323:31:
warning: unused parameter ‘ctx’ [-Wunused-parameter]
323 | static void characters(void * ctx,
| ~~~~~~~^~~
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libgcobol/xmlparse.cc:
In function ‘void comment(void*, const xmlChar*)’:
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libgcobol/xmlparse.cc:331:28:
warning: unused parameter ‘ctx’ [-Wunused-parameter]
331 | static void comment(void * ctx, const xmlChar * value) {
| ~~~~~~~^~~
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libgcobol/xmlparse.cc:
In function ‘void elementDecl(void*, const xmlChar*, int,
xmlElementContentPtr)’:
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libgcobol/xmlparse.cc:336:32:
warning: unused parameter ‘ctx’ [-Wunused-parameter]
336 | static void elementDecl(void * ctx,
| ~~~~~~~^~~
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libgcobol/xmlparse.cc:338:29:
warning: unused parameter ‘type’ [-Wunused-parameter]
338 | int type,
| ~~~~^~~~
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libgcobol/xmlparse.cc:339:46:
warning: unused parameter ‘content’ [-Wunused-parameter]
339 | xmlElementContentPtr content)
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libgcobol/xmlparse.cc:
In function ‘void endDocument(void*)’:
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libgcobol/xmlparse.cc:342:32:
warning: unused parameter ‘ctx’ [-Wunused-parameter]
342 | static void endDocument(void * ctx)
[...]
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libgcobol/xmlparse.cc:396:21:
warning: ‘xmlEntity* getParameterEntity(void*, const xmlChar*)’ defined but not
used [-Wunused-function]
396 | static xmlEntityPtr getParameterEntity(void * ctx,
| ^~~~~~~~~~~~~~~~~~
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libgcobol/xmlparse.cc:392:21:
warning: ‘xmlEntity* getEntity(void*, const xmlChar*)’ defined but not used
[-Wunused-function]
392 | static xmlEntityPtr getEntity(void * ctx,
| ^~~~~~~~~
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libgcobol/xmlparse.cc:376:13:
warning: ‘void externalSubset(void*, const xmlChar*, const xmlChar*, const
xmlChar*)’ defined but not used [-Wunused-function]
376 | static void externalSubset(void * ctx,
| ^~~~~~~~~~~~~~
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libgcobol/xmlparse.cc:358:13:
warning: ‘void entityDecl(void*, const xmlChar*, int, const xmlChar*, const
xmlChar*, xmlChar*)’
defined but not used [-Wunused-function]
358 | static void entityDecl(void * ctx,
| ^~~~~~~~~~
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libgcobol/xmlparse.cc:354:13:
warning: ‘void endElement(void*, const xmlChar*)’ defined but not used
[-Wunused-function]
354 | static void endElement(void * ctx,
| ^~~~~~~~~~
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libgcobol/xmlparse.cc:336:13:
warning: ‘void elementDecl(void*, const xmlChar*, int, xmlElementContentPtr)’
defined but not used [-Wunused-function]
336 | static void elementDecl(void * ctx,
| ^~~~~~~~~~~
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libgcobol/xmlparse.cc:303:13:
warning: ‘void attributeDecl(void*, const xmlChar*, const xmlChar*, int, int,
const xmlChar*, xmlEnumerationPtr)’ defined but not used [-Wunused-function]
303 | static void attributeDecl(void * ctx,
| ^~~~~~~~~~~~~
[...]
```