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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
dcb
Reply | Threaded
Open this post in threaded view
|

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

dcb
Issue status update for
http://smalltalk.gnu.org/node/1340
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/1340

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    Build
 Category:     bug reports
 Priority:     normal
 Assigned to:  Unassigned
 Reported by:  dcb
 Updated by:   dcb
 Status:       active

Source code is

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

Plenty of duplicates in the same file.



_______________________________________________
help-smalltalk mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

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

Holger Hans Peter Freyther-3
Issue status update for
http://smalltalk.gnu.org/project/issue/1340
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/1340

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    Build
 Category:     bug reports
 Priority:     normal
 Assigned to:  Unassigned
 Reported by:  dcb
 Updated by:   zecke
 Status:       active

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?



_______________________________________________
help-smalltalk mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-smalltalk