summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhillip Wood <phillip.wood@dunelm.org.uk>2013-04-19 11:34:39 +0100
committerPhillip Wood <phillip.wood@dunelm.org.uk>2013-09-25 10:53:54 +0100
commit2bc27d51881a6109d4d457dcb7eb98d9ec99cf81 (patch)
treeeb738535bd9d962ac0919757d24c966173127e13
parentc7572aa783e4e14bb533aa9d1335a1b3232c7bd8 (diff)
Fix ambiguous function prototypes
GCC now complains about function prototypes without parameters. This fixes those warnings. https://bugzilla.gnome.org/show_bug.cgi?id=698599
-rw-r--r--libjuicer/rb-gst-media-types.c2
-rw-r--r--src/sj-genres.c3
-rw-r--r--src/sj-main.c2
-rw-r--r--src/sj-prefs.h2
4 files changed, 4 insertions, 5 deletions
diff --git a/libjuicer/rb-gst-media-types.c b/libjuicer/rb-gst-media-types.c
index e87b013..3777060 100644
--- a/libjuicer/rb-gst-media-types.c
+++ b/libjuicer/rb-gst-media-types.c
@@ -198,7 +198,7 @@ rb_gst_encoding_profile_get_media_type (GstEncodingProfile *profile)
}
GstEncodingTarget *
-rb_gst_get_default_encoding_target ()
+rb_gst_get_default_encoding_target (void)
{
if (default_target == NULL) {
char *target_file;
diff --git a/src/sj-genres.c b/src/sj-genres.c
index 942fe97..2e76222 100644
--- a/src/sj-genres.c
+++ b/src/sj-genres.c
@@ -61,7 +61,7 @@ static gboolean in_array (const char *str, const char** array) {
return found;
}
-static char* genre_filename () {
+static char* genre_filename (void) {
return g_build_filename (g_get_user_config_dir (),
"sound-juicer",
"genres",
@@ -192,4 +192,3 @@ void save_genre (GtkWidget *entry) {
setup_genre_entry (entry);
}
-
diff --git a/src/sj-main.c b/src/sj-main.c
index 48a40b4..ea5016e 100644
--- a/src/sj-main.c
+++ b/src/sj-main.c
@@ -1980,7 +1980,7 @@ upgrade_gconf (void)
* If this is found TRUE is returned, otherwise FALSE is returned.
*/
static gboolean
-is_cd_duplication_available()
+is_cd_duplication_available(void)
{
/* First check the brasero tool is available in the path */
gchar* brasero_cd_burner = g_find_program_in_path ("brasero");
diff --git a/src/sj-prefs.h b/src/sj-prefs.h
index 25a5066..eb22121 100644
--- a/src/sj-prefs.h
+++ b/src/sj-prefs.h
@@ -23,7 +23,7 @@
#ifndef SJ_PREFS_H
#define SJ_PREFS_H
-extern const char* prefs_get_default_device ();
+extern const char* prefs_get_default_device (void);
void show_preferences_dialog (void);
gboolean cd_drive_exists (const char *device);
void show_help (GtkWindow *parent);