Open gunnarhj opened 3 years ago
Hmm, I wonder if gcc is getting confused since l_debug
is a macro. It might go away if we replace them with inline functions instead?
I would guess it's simpler than that. I can trigger the warning by just doing:
printf ("Hello %s\n", NULL);
And replacing the line
l_debug (server, "Connecting to XServer %s", x_server_get_address (server));
with
l_debug (server, "Connecting to XServer %s", x_server_get_address (server) ? x_server_get_address (server) : "");
seems to fix it.
The build failure happens on Ubuntu 20.10 and 21.04, and is caused by this warning:
Possibly it's related to this change:
I'm about to work around the issue in hirsute by applying this patch: