mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 02:15:31 +00:00
pluginloader: fix compiler warnings
Cast string constants to make compiler happy.
This commit is contained in:
parent
6ca7284a54
commit
918a62abcf
1 changed files with 12 additions and 4 deletions
|
@ -355,13 +355,21 @@ gst_plugin_loader_try_helper (GstPluginLoader * loader, gchar * location)
|
|||
{
|
||||
#ifdef __APPLE__
|
||||
#if defined(__x86_64__)
|
||||
char *argv[] = { "/usr/bin/arch", "-x86_64", location, (char *) "-l", NULL };
|
||||
char *argv[] = { (char *) "/usr/bin/arch", (char *) "-x86_64",
|
||||
location, (char *) "-l", NULL
|
||||
};
|
||||
#elif defined(__i386__)
|
||||
char *argv[] = { "/usr/bin/arch", "-i386", location, (char *) "-l", NULL };
|
||||
char *argv[] = { (char *) "/usr/bin/arch", (char *) "-i386",
|
||||
location, (char *) "-l", NULL
|
||||
};
|
||||
#elif defined(__ppc__)
|
||||
char *argv[] = { "/usr/bin/arch", "-ppc", location, (char *) "-l", NULL };
|
||||
char *argv[] = { (char *) "/usr/bin/arch", (char *) "-ppc",
|
||||
location, (char *) "-l", NULL
|
||||
};
|
||||
#elif defined(__ppc64__)
|
||||
char *argv[] = { "/usr/bin/arch", "-ppc64", location, (char *) "-l", NULL };
|
||||
char *argv[] = { (char *) "/usr/bin/arch", (char *) "-ppc64",
|
||||
location, (char *) "-l", NULL
|
||||
};
|
||||
#endif
|
||||
#else /* ! __APPLE__ */
|
||||
char *argv[] = { location, (char *) "-l", NULL };
|
||||
|
|
Loading…
Reference in a new issue