[sound-juicer] Fix ambiguous function prototypes



commit 2bc27d51881a6109d4d457dcb7eb98d9ec99cf81
Author: Phillip Wood <phillip wood dunelm org uk>
Date:   Fri Apr 19 11:34:39 2013 +0100

    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

 libjuicer/rb-gst-media-types.c |    2 +-
 src/sj-genres.c                |    3 +--
 src/sj-main.c                  |    2 +-
 src/sj-prefs.h                 |    2 +-
 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]