gst-parse.c:605:21: warning: unknown conversion type character 'O' in format [-Wformat=]

Project:GNU Smalltalk
Component:Build
Category:bug
Priority:normal
Assigned:Unassigned
Status:active
Description

Source code is

         printf ("returned value is %O\n", _gst_last_returned_value);

Plenty of duplicates in the same file.

Updates

#1 submitted by Holger Hans Pet... on Sat, 03/10/2018 - 13:50

The warnings are annoying but they are misleading. Our "printf" comes from the GNU snprintfv library which has a function to register extensions (e.g. %O) to it. I think the documentation from GNU libc applies here as well: https://www.gnu.org/software/libc/manual/html_node/Printf-Extension-Exam....

Maybe you can see if we can teach the compiler that %O is valid and expects an OOP?

User login