~martijnbraam/Megapixels#7: 
"format-security" compiler setting causes build failure

The compiler I'm working with, among other hardening-related flags, enables "-Wformat -Wformat-security -Werror=format-security" by default. These flags cause the following build failure:

../main.c: In function 'process_image': ../main.c:403:4: error: format not a string literal and no format arguments [-Werror=format-security] 403 | g_printerr(error->message); | ^~~~~~ cc1: some warnings being treated as errors

Status
RESOLVED FIXED
Submitter
Christoph N.
Assigned to
No-one
Submitted
a month ago
Updated
a month ago
Labels
No labels applied.

~martijnbraam REPORTED FIXED a month ago

Hmm yes I've seen this warning in pmos builds. Replaced that line with a slightly less stupid version.

Register here or Log in to comment, or comment via email.