Fix warning ISO C does not support __FUNCTION__
"warning: ISO C does not support ‘__FUNCTION__’ predefined identifier" Among others -Wpedantic now warns about non-standard predefined identifiers. The fix is either to use the standard predefined identifier __func__ (since C99), or to use the __extension__ keyword.
This commit is contained in:
@@ -467,7 +467,7 @@ void taskbar_refresh_tasklist()
|
||||
{
|
||||
if (!taskbar_enabled)
|
||||
return;
|
||||
// fprintf(stderr, "tint2: %s %d:\n", __FUNCTION__, __LINE__);
|
||||
// fprintf(stderr, "tint2: %s %d:\n", __func__, __LINE__);
|
||||
|
||||
int num_results;
|
||||
Window *win = server_get_property(server.root_win, server.atom._NET_CLIENT_LIST, XA_WINDOW, &num_results);
|
||||
|
||||
Reference in New Issue
Block a user