diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 13:19:56 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 13:19:56 +0000 |
commit | 726120a4074b90596379e86ceb049cc24058bbf1 (patch) | |
tree | 77559c7eae18d4f29fc800aef4464b8f71531c61 /shell/source/unix/misc/gnome-open-url.c | |
parent | INTEGRATION: CWS warnings01 (1.3.14); FILE MERGED (diff) | |
download | core-726120a4074b90596379e86ceb049cc24058bbf1.tar.gz core-726120a4074b90596379e86ceb049cc24058bbf1.zip |
INTEGRATION: CWS warnings01 (1.4.14); FILE MERGED
2006/01/27 13:38:57 sb 1.4.14.2: #i53898# Made code warning-free.
2005/11/10 13:04:04 pl 1.4.14.1: #i53898# removed warnings
Diffstat (limited to 'shell/source/unix/misc/gnome-open-url.c')
-rw-r--r-- | shell/source/unix/misc/gnome-open-url.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/shell/source/unix/misc/gnome-open-url.c b/shell/source/unix/misc/gnome-open-url.c index e850b7fc6e36..226e35853869 100644 --- a/shell/source/unix/misc/gnome-open-url.c +++ b/shell/source/unix/misc/gnome-open-url.c @@ -4,9 +4,9 @@ * * $RCSfile: gnome-open-url.c,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: rt $ $Date: 2005-09-07 19:54:53 $ + * last change: $Author: hr $ $Date: 2006-06-19 14:19:56 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -63,6 +63,8 @@ gchar* gnome_gconf_get_gnome_libs_settings_relative (const gchar *subkey) { void* handle = dlopen("libglib-2.0.so.0", RTLD_LAZY); + (void)subkey; /* avoid warning due to unused parameter */ + if( NULL != handle ) { gchar* (* g_strdup)(const gchar*) = (gchar* (*)(const gchar*)) dlsym(handle, "g_strdup"); @@ -83,6 +85,8 @@ gboolean gnome_url_show (const char *url, GError **error) void* handle = dlopen("libgnomevfs-2.so.0", RTLD_LAZY); gboolean ret = 0; + (void)error; /* avoid warning due to unused parameter */ + if( NULL != handle ) { gboolean (* init) (void) = @@ -135,9 +139,11 @@ int main(int argc, char *argv[] ) index = strstr(fallback, "gnome-open-url"); if ( NULL != index ) { - char *args[3] = { NULL, argv[1], NULL }; + char *args[3]; strncpy(index, "open-url", 9); args[0] = fallback; + args[1] = argv[1]; + args[2] = NULL; return execv(fallback, args); } |