mu: don't use __FUNCTION__, use __func__
__FUNCTION__ is deprecated and gives compilation warnings. __func__ is standardized in c99.
This commit is contained in:
@ -160,7 +160,7 @@ test_mu_flags_custom_from_str (void)
|
||||
cust = mu_flags_custom_from_str (cases[u].str);
|
||||
if (g_test_verbose())
|
||||
g_print ("%s: str:%s; got:%s; expected:%s\n",
|
||||
__FUNCTION__, cases[u].str, cust, cases[u].expected);
|
||||
__func__, cases[u].str, cust, cases[u].expected);
|
||||
g_assert_cmpstr (cust, ==, cases[u].expected);
|
||||
g_free (cust);
|
||||
}
|
||||
|
||||
@ -227,7 +227,7 @@ dir_cb (const char *fullpath, gboolean enter, WalkData *data)
|
||||
++data->_dir_left;
|
||||
|
||||
if (g_test_verbose())
|
||||
g_print ("%s: %s: %s (%u)\n", __FUNCTION__, enter ? "entering" : "leaving",
|
||||
g_print ("%s: %s: %s (%u)\n", __func__, enter ? "entering" : "leaving",
|
||||
fullpath, enter ? data->_dir_entered : data->_dir_left);
|
||||
|
||||
return MU_OK;
|
||||
|
||||
Reference in New Issue
Block a user