build: fix build warnigns with Clang

This commit is contained in:
Christian Hergert
2020-08-14 12:57:50 -07:00
parent f16bbac342
commit 620f1f0ff0
15 changed files with 19 additions and 34 deletions

View File

@ -166,14 +166,14 @@ sysprof_spawnable_setenv (SysprofSpawnable *self,
void
sysprof_spawnable_set_environ (SysprofSpawnable *self,
const gchar * const *environ)
const gchar * const *environ_)
{
g_return_if_fail (SYSPROF_IS_SPAWNABLE (self));
if (environ != (const gchar * const *)self->environ)
if (environ_ != (const gchar * const *)self->environ)
{
g_strfreev (self->environ);
self->environ = g_strdupv ((gchar **)environ);
self->environ = g_strdupv ((gchar **)environ_);
}
}