[Bug c/47781] warnings from custom printf format specifiers

dcrocker at eschertech dot com gcc-bugzilla@gcc.gnu.org
Sun Dec 13 15:48:10 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47781

David Crocker <dcrocker at eschertech dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dcrocker at eschertech dot com

--- Comment #23 from David Crocker <dcrocker at eschertech dot com> ---
I need this feature too. Instead of waiting several more years for an
all-singing all-dancing solution, PLEASE can we have a simple solution that
allows me to use a custom format specifier and skips a single argument for that
specifier. I believe this would cover the vast majority of uses custom format
specifiers. My particular use case is that my application generates a lot of
JSON strings, so in my printf replacement I want to implement a specifier
similar to %s that performs JSON escaping on characters in the string.


More information about the Gcc-bugs mailing list