Tk Source Code

View Ticket
Login
Ticket UUID: 2ed289cae063544e486e9affe812028738135216
Title: Aqua: more format specifiers than arguments in tkToolbarButton:
Type: Bug Version: core-8-6-branch
Submitter: chrstphrchvz Created on: 2023-03-27 13:56:39
Subsystem: 83. Mac OS X Build Assigned To: fvogel
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2023-03-30 03:46:29
Resolution: Fixed Closed By: fvogel
    Closed on: 2023-03-30 03:46:29
Description:

At tkMacOSXWindowEvent.c:1299:

- (void) tkToolbarButton: (id) sender
{
#ifdef TK_MAC_DEBUG_EVENTS
    TKLog(@"-[%@(%p) %s] %@", [self class], self, _cmd);
#endif

This causes a compiler warning: More '%' conversions than data arguments (-Wformat-insufficient-args).

Presumably the extra %@ specifier should be removed, or used to print sender similar to what other TKLog() usage does.

User Comments: fvogel added on 2023-03-30 03:46:29:
The CI runners are all happy, therefore I have merged. Thanks!

fvogel added on 2023-03-28 20:21:54:

Thanks. Committed in [e3336f38ac]. Didn't check, let's see what Github Actions think of it.