Author: akv
Date: 2011-03-27 20:04:31 +0200 (Sun, 27 Mar 2011)
New Revision: 3938

Modified:
   trunk/librawstudio/rs-filetypes.c
   trunk/librawstudio/rs-filetypes.h
   trunk/librawstudio/rs-filter.h
   trunk/librawstudio/rs-io.c
   trunk/librawstudio/rs-io.h
   trunk/librawstudio/rs-job-queue.c
   trunk/librawstudio/rs-lens-db-editor.c
   trunk/librawstudio/rs-lens-db-editor.h
   trunk/librawstudio/rs-lens-fix.c
   trunk/librawstudio/rs-lens-fix.h
   trunk/librawstudio/rs-output.h
   trunk/librawstudio/rs-plugin-manager.h
   trunk/librawstudio/rs-rawfile.h
   trunk/librawstudio/rs-utils.c
   trunk/librawstudio/rs-utils.h
   trunk/plugins/colorspace-transform/colorspace_transform.c
   trunk/plugins/colorspace-transform/colorspace_transform.h
   trunk/plugins/colorspace-transform/colorspace_transform_sse2.c
   trunk/plugins/lensfun/lensfun-sse2.c
   trunk/plugins/lensfun/lensfun-version.c
   trunk/plugins/lensfun/lensfun-version.h
   trunk/plugins/lensfun/lensfun.c
   trunk/plugins/output-picasa/rs-picasa-client.c
   trunk/plugins/output-picasa/rs-picasa-client.h
   trunk/plugins/resample/resample-sse2.c
   trunk/plugins/resample/resample.c
   trunk/src/application.c
   trunk/src/application.h
   trunk/src/gtk-interface.c
   trunk/src/gtk-interface.h
   trunk/src/rs-actions.c
   trunk/src/rs-histogram.h
   trunk/src/rs-photo.h
Log:
Fixing strict warnings - patch by Simone Contini.

Modified: trunk/librawstudio/rs-filetypes.c
===================================================================
--- trunk/librawstudio/rs-filetypes.c   2011-03-27 17:58:33 UTC (rev 3937)
+++ trunk/librawstudio/rs-filetypes.c   2011-03-27 18:04:31 UTC (rev 3938)
@@ -137,7 +137,7 @@
  * rs_filetype_*-functions
  */
 void
-rs_filetype_init()
+rs_filetype_init(void)
 {
        g_static_mutex_lock(&lock);
        if (rs_filetype_is_initialized)

Modified: trunk/librawstudio/rs-filetypes.h
===================================================================
--- trunk/librawstudio/rs-filetypes.h   2011-03-27 17:58:33 UTC (rev 3937)
+++ trunk/librawstudio/rs-filetypes.h   2011-03-27 18:04:31 UTC (rev 3938)
@@ -35,7 +35,7 @@
  * Initialize the RSFiletype subsystem, this MUST be called before any other
  * rs_filetype_*-functions
  */
-extern void rs_filetype_init();
+extern void rs_filetype_init(void);
 
 /**
  * Register a new image loader

Modified: trunk/librawstudio/rs-filter.h
===================================================================
--- trunk/librawstudio/rs-filter.h      2011-03-27 17:58:33 UTC (rev 3937)
+++ trunk/librawstudio/rs-filter.h      2011-03-27 18:04:31 UTC (rev 3938)
@@ -101,7 +101,7 @@
        void (*previous_changed)(RSFilter *filter, RSFilter *parent, 
RSFilterChangedMask mask);
 };
 
-GType rs_filter_get_type() G_GNUC_CONST;
+GType rs_filter_get_type(void) G_GNUC_CONST;
 
 /**
  * Return a new instance of a RSFilter

Modified: trunk/librawstudio/rs-io.c
===================================================================
--- trunk/librawstudio/rs-io.c  2011-03-27 17:58:33 UTC (rev 3937)
+++ trunk/librawstudio/rs-io.c  2011-03-27 18:04:31 UTC (rev 3938)
@@ -80,7 +80,7 @@
 }
 
 static void
-init()
+init(void)
 {
        int i;
        g_static_mutex_lock(&init_lock);
@@ -282,7 +282,7 @@
  * Aquire the IO lock
  */
 void
-rs_io_lock()
+rs_io_lock(void)
 {
        g_static_rec_mutex_lock(&io_lock);
 }
@@ -291,7 +291,7 @@
  * Release the IO lock
  */
 void
-rs_io_unlock()
+rs_io_unlock(void)
 {
        g_static_rec_mutex_unlock(&io_lock);
 }
@@ -300,7 +300,7 @@
  * Pause the worker threads
  */
 void
-rs_io_idle_pause()
+rs_io_idle_pause(void)
 {
        pause_queue = TRUE;
 }
@@ -309,7 +309,7 @@
  * Unpause the worker threads
  */
 void
-rs_io_idle_unpause()
+rs_io_idle_unpause(void)
 {
        pause_queue = FALSE;
 }
@@ -318,7 +318,7 @@
  * Returns the number of jobs left
  */
 gint
-rs_io_get_jobs_left()
+rs_io_get_jobs_left(void)
 {
        g_static_mutex_lock(&count_lock);
        gint left = g_async_queue_length(queue) + queue_active_count;

Modified: trunk/librawstudio/rs-io.h
===================================================================
--- trunk/librawstudio/rs-io.h  2011-03-27 17:58:33 UTC (rev 3937)
+++ trunk/librawstudio/rs-io.h  2011-03-27 18:04:31 UTC (rev 3938)
@@ -101,30 +101,30 @@
  * Pause the worker threads
  */
 void
-rs_io_idle_pause();
+rs_io_idle_pause(void);
 
 /**
  * Unpause the worker threads
  */
 void
-rs_io_idle_unpause();
+rs_io_idle_unpause(void);
 
 /**
  * Aquire the IO lock
  */
 void
-rs_io_lock();
+rs_io_lock(void);
 
 /**
  * Release the IO lock
  */
 void
-rs_io_unlock();
+rs_io_unlock(void);
 
 /**
  * Returns the number of jobs left
  */
 gint
-rs_io_get_jobs_left();
+rs_io_get_jobs_left(void);
 
 #endif /* RS_IO_H */

Modified: trunk/librawstudio/rs-job-queue.c
===================================================================
--- trunk/librawstudio/rs-job-queue.c   2011-03-27 17:58:33 UTC (rev 3937)
+++ trunk/librawstudio/rs-job-queue.c   2011-03-27 18:04:31 UTC (rev 3938)
@@ -127,7 +127,7 @@
  * @return A RSJobQueue singleton
  */
 static RSJobQueue *
-rs_job_queue_get_singleton()
+rs_job_queue_get_singleton(void)
 {
        static RSJobQueue *singleton = NULL;
        static GStaticMutex lock = G_STATIC_MUTEX_INIT;

Modified: trunk/librawstudio/rs-lens-db-editor.c
===================================================================
--- trunk/librawstudio/rs-lens-db-editor.c      2011-03-27 17:58:33 UTC (rev 
3937)
+++ trunk/librawstudio/rs-lens-db-editor.c      2011-03-27 18:04:31 UTC (rev 
3938)
@@ -38,7 +38,7 @@
 #include "rs-lens-db-editor.h"
 
 static void fill_model(RSLensDb *lens_db, GtkTreeModel *tree_model);
-static char * rs_lens_db_editor_update_lensfun();
+static char * rs_lens_db_editor_update_lensfun(void);
 GtkDialog *rs_lens_db_editor_single_lens(RSLens *lens);
 
 typedef struct {
@@ -554,7 +554,7 @@
 }
 
 void
-rs_lens_db_editor() 
+rs_lens_db_editor(void) 
 {
        GtkTreeModel *tree_model = GTK_TREE_MODEL(gtk_list_store_new(10, 
G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, 
G_TYPE_STRING, G_TYPE_STRING, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN, G_TYPE_OBJECT));
 
@@ -724,7 +724,7 @@
 }
 
 static gchar *
-rs_lens_db_editor_update_lensfun()
+rs_lens_db_editor_update_lensfun(void)
 {
        const gchar *baseurl = 
"http://svn.berlios.de/svnroot/repos/lensfun/trunk/data/db/";;
        const gchar *target = g_strdup_printf("%s/.%u-rawstudio_lensfun/", 
g_get_tmp_dir(), g_random_int());

Modified: trunk/librawstudio/rs-lens-db-editor.h
===================================================================
--- trunk/librawstudio/rs-lens-db-editor.h      2011-03-27 17:58:33 UTC (rev 
3937)
+++ trunk/librawstudio/rs-lens-db-editor.h      2011-03-27 18:04:31 UTC (rev 
3938)
@@ -34,7 +34,7 @@
 };
 
 
-extern void rs_lens_db_editor();
+extern void rs_lens_db_editor(void);
 extern GtkDialog * rs_lens_db_editor_single_lens(RSLens *lens);
 
 #endif /* RS_LENS_DB_EDITOR_H */

Modified: trunk/librawstudio/rs-lens-fix.c
===================================================================
--- trunk/librawstudio/rs-lens-fix.c    2011-03-27 17:58:33 UTC (rev 3937)
+++ trunk/librawstudio/rs-lens-fix.c    2011-03-27 18:04:31 UTC (rev 3938)
@@ -241,7 +241,7 @@
 
 
 gboolean
-rs_lens_fix_init()
+rs_lens_fix_init(void)
 {
        lens_fix_hash_table = g_hash_table_new(g_str_hash, g_str_equal);
 

Modified: trunk/librawstudio/rs-lens-fix.h
===================================================================
--- trunk/librawstudio/rs-lens-fix.h    2011-03-27 17:58:33 UTC (rev 3937)
+++ trunk/librawstudio/rs-lens-fix.h    2011-03-27 18:04:31 UTC (rev 3938)
@@ -20,7 +20,7 @@
 #ifndef RS_LENS_FIX_H
 #define RS_LENS_FIX_H
 
-gboolean rs_lens_fix_init();
+gboolean rs_lens_fix_init(void);
 gboolean rs_lens_fix(RSMetadata *meta);
 
 #endif /* RS_LENS_FIX_H */

Modified: trunk/librawstudio/rs-output.h
===================================================================
--- trunk/librawstudio/rs-output.h      2011-03-27 17:58:33 UTC (rev 3937)
+++ trunk/librawstudio/rs-output.h      2011-03-27 18:04:31 UTC (rev 3938)
@@ -84,7 +84,7 @@
        gboolean (*execute)(RSOutput *output, RSFilter *filter);
 };
 
-GType rs_output_get_type() G_GNUC_CONST;
+GType rs_output_get_type(void) G_GNUC_CONST;
 
 /**
  * Instantiate a new RSOutput type

Modified: trunk/librawstudio/rs-plugin-manager.h
===================================================================
--- trunk/librawstudio/rs-plugin-manager.h      2011-03-27 17:58:33 UTC (rev 
3937)
+++ trunk/librawstudio/rs-plugin-manager.h      2011-03-27 18:04:31 UTC (rev 
3938)
@@ -26,7 +26,7 @@
  * Load all installed Rawstudio plugins
  */
 extern gint
-rs_plugin_manager_load_all_plugins();
+rs_plugin_manager_load_all_plugins(void);
 
 G_END_DECLS
 

Modified: trunk/librawstudio/rs-rawfile.h
===================================================================
--- trunk/librawstudio/rs-rawfile.h     2011-03-27 17:58:33 UTC (rev 3937)
+++ trunk/librawstudio/rs-rawfile.h     2011-03-27 18:04:31 UTC (rev 3938)
@@ -24,7 +24,7 @@
 
 #include "rs-types.h"
 
-void raw_init();
+void raw_init(void);
 RAWFILE *raw_open_file(const gchar *filename);
 RAWFILE *raw_create_from_memory(void *memory, guint size, guint 
first_ifd_offset, gushort byteorder);
 guchar raw_init_file_tiff(RAWFILE *rawfile, guint pos);

Modified: trunk/librawstudio/rs-utils.c
===================================================================
--- trunk/librawstudio/rs-utils.c       2011-03-27 17:58:33 UTC (rev 3937)
+++ trunk/librawstudio/rs-utils.c       2011-03-27 18:04:31 UTC (rev 3938)
@@ -145,7 +145,7 @@
  * @return The numver of cores or 1 if the system is unsupported
  */
 gint
-rs_get_number_of_processor_cores()
+rs_get_number_of_processor_cores(void)
 {
        static GStaticMutex lock = G_STATIC_MUTEX_INIT;
 
@@ -206,7 +206,7 @@
  * @return A bitmask of @RSCpuFlags
  */
 guint
-rs_detect_cpu_features()
+rs_detect_cpu_features(void)
 {
 #define cpuid(cmd, eax, ecx, edx) \
   do { \
@@ -349,7 +349,7 @@
  * @return A path to an existing directory
  */
 const gchar *
-rs_confdir_get()
+rs_confdir_get(void)
 {
        static gchar *dir = NULL;
        static GStaticMutex lock = G_STATIC_MUTEX_INIT;
@@ -600,7 +600,7 @@
  * Check (and complain if needed) the Rawstudio install
  */
 void
-check_install()
+check_install(void)
 {
 #define TEST_FILE_ACCESS(path) do { if (g_access(path, R_OK)!=0) 
g_debug("Cannot access %s\n", path);} while (0)
        TEST_FILE_ACCESS(PACKAGE_DATA_DIR G_DIR_SEPARATOR_S "icons" 
G_DIR_SEPARATOR_S PACKAGE ".png");

Modified: trunk/librawstudio/rs-utils.h
===================================================================
--- trunk/librawstudio/rs-utils.h       2011-03-27 17:58:33 UTC (rev 3937)
+++ trunk/librawstudio/rs-utils.h       2011-03-27 18:04:31 UTC (rev 3938)
@@ -70,14 +70,14 @@
  * @return The numver of cores or 1 if the system is unsupported
  */
 extern gint
-rs_get_number_of_processor_cores();
+rs_get_number_of_processor_cores(void);
 
 /**
  * Detect cpu features
  * @return A bitmask of @RSCpuFlags
  */
 guint
-rs_detect_cpu_features();
+rs_detect_cpu_features(void);
 
 /**
  * Return a path to the current config directory for Rawstudio - this is the
@@ -85,7 +85,7 @@
  * @return A path to an existing directory
  */
 extern const gchar *
-rs_confdir_get();
+rs_confdir_get(void);
 
 /**
  * Return a cache directory for filename
@@ -146,7 +146,7 @@
  * Check (and complain if needed) the Rawstudio install
  */
 extern void
-check_install();
+check_install(void);
 
 extern gfloat
 CanonEv(gint val);

Modified: trunk/plugins/colorspace-transform/colorspace_transform.c
===================================================================
--- trunk/plugins/colorspace-transform/colorspace_transform.c   2011-03-27 
17:58:33 UTC (rev 3937)
+++ trunk/plugins/colorspace-transform/colorspace_transform.c   2011-03-27 
18:04:31 UTC (rev 3938)
@@ -54,7 +54,7 @@
 /* SSE2 optimized functions */
 extern void transform8_srgb_sse2(ThreadInfo* t);
 extern void transform8_otherrgb_sse2(ThreadInfo* t);
-extern gboolean cst_has_sse2();
+extern gboolean cst_has_sse2(void);
 
 G_MODULE_EXPORT void
 rs_plugin_load(RSPlugin *plugin)

Modified: trunk/plugins/colorspace-transform/colorspace_transform.h
===================================================================
--- trunk/plugins/colorspace-transform/colorspace_transform.h   2011-03-27 
17:58:33 UTC (rev 3937)
+++ trunk/plugins/colorspace-transform/colorspace_transform.h   2011-03-27 
18:04:31 UTC (rev 3938)
@@ -56,4 +56,4 @@
 /* SSE2 optimized functions */
 void transform8_srgb_sse2(ThreadInfo* t);
 void transform8_otherrgb_sse2(ThreadInfo* t);
-gboolean cst_has_sse2();
+gboolean cst_has_sse2(void);

Modified: trunk/plugins/colorspace-transform/colorspace_transform_sse2.c
===================================================================
--- trunk/plugins/colorspace-transform/colorspace_transform_sse2.c      
2011-03-27 17:58:33 UTC (rev 3937)
+++ trunk/plugins/colorspace-transform/colorspace_transform_sse2.c      
2011-03-27 18:04:31 UTC (rev 3938)
@@ -539,7 +539,7 @@
        }
 }
 
-gboolean cst_has_sse2() 
+gboolean cst_has_sse2(void) 
 {
        return TRUE;
 }

Modified: trunk/plugins/lensfun/lensfun-sse2.c
===================================================================
--- trunk/plugins/lensfun/lensfun-sse2.c        2011-03-27 17:58:33 UTC (rev 
3937)
+++ trunk/plugins/lensfun/lensfun-sse2.c        2011-03-27 18:04:31 UTC (rev 
3938)
@@ -30,7 +30,7 @@
 static gint _zero12[4] __attribute__ ((aligned (16))) = {0,1,2,0};
 static gint _max_coord[4] __attribute__ ((aligned (16))) = 
{65536,65536,65536,65536};
 
-gboolean is_sse2_compiled()
+gboolean is_sse2_compiled(void)
 {
        return TRUE;
 }
@@ -352,7 +352,7 @@
 
 #else // NO SSE2
 
-gboolean is_sse2_compiled()
+gboolean is_sse2_compiled(void)
 {
        return FALSE;
 }

Modified: trunk/plugins/lensfun/lensfun-version.c
===================================================================
--- trunk/plugins/lensfun/lensfun-version.c     2011-03-27 17:58:33 UTC (rev 
3937)
+++ trunk/plugins/lensfun/lensfun-version.c     2011-03-27 18:04:31 UTC (rev 
3938)
@@ -53,7 +53,7 @@
 static gint _guess_lensfun_iterator(struct dl_phdr_info *info, gsize size, 
gpointer user_data);
 
 guint
-rs_guess_lensfun_version()
+rs_guess_lensfun_version(void)
 {
        gint max_unwind_levels;
        gint major=0, minor=0, micro=0, bugfix=0;

Modified: trunk/plugins/lensfun/lensfun-version.h
===================================================================
--- trunk/plugins/lensfun/lensfun-version.h     2011-03-27 17:58:33 UTC (rev 
3937)
+++ trunk/plugins/lensfun/lensfun-version.h     2011-03-27 18:04:31 UTC (rev 
3938)
@@ -23,6 +23,6 @@
 #include <glib.h>
 
 guint
-rs_guess_lensfun_version();
+rs_guess_lensfun_version(void);
 
 #endif /* RS_LENSFUN_VERSION_H */

Modified: trunk/plugins/lensfun/lensfun.c
===================================================================
--- trunk/plugins/lensfun/lensfun.c     2011-03-27 17:58:33 UTC (rev 3937)
+++ trunk/plugins/lensfun/lensfun.c     2011-03-27 18:04:31 UTC (rev 3938)
@@ -86,7 +86,7 @@
 static RSFilterResponse *get_image(RSFilter *filter, const RSFilterRequest 
*request);
 static void inline rs_image16_nearest_full(RS_IMAGE16 *in, gushort *out, 
gfloat *pos);
 static void inline rs_image16_bilinear_full(RS_IMAGE16 *in, gushort *out, 
gfloat *pos);
-extern gboolean is_sse2_compiled();
+extern gboolean is_sse2_compiled(void);
 extern void rs_image16_bilinear_full_sse2(RS_IMAGE16 *in, gushort *out, gfloat 
*pos, const gint *current_xy, const gint* min_max_xy);
 extern void rs_image16_bilinear_nomeasure_sse2(RS_IMAGE16 *in, gushort *out, 
gfloat *pos);
 static RSFilterClass *rs_lensfun_parent_class = NULL;

Modified: trunk/plugins/output-picasa/rs-picasa-client.c
===================================================================
--- trunk/plugins/output-picasa/rs-picasa-client.c      2011-03-27 17:58:33 UTC 
(rev 3937)
+++ trunk/plugins/output-picasa/rs-picasa-client.c      2011-03-27 18:04:31 UTC 
(rev 3938)
@@ -519,7 +519,7 @@
 }
 
 PicasaClient *
-rs_picasa_client_init()
+rs_picasa_client_init(void)
 {
        PicasaClient *picasa_client = g_malloc0(sizeof(PicasaClient));
        picasa_client->curl = curl_easy_init();

Modified: trunk/plugins/output-picasa/rs-picasa-client.h
===================================================================
--- trunk/plugins/output-picasa/rs-picasa-client.h      2011-03-27 17:58:33 UTC 
(rev 3937)
+++ trunk/plugins/output-picasa/rs-picasa-client.h      2011-03-27 18:04:31 UTC 
(rev 3938)
@@ -25,6 +25,6 @@
 GtkListStore * rs_picasa_client_get_album_list(PicasaClient *picasa_client, 
GError **error);
 char * rs_picasa_client_create_album(PicasaClient *picasa_client, const gchar 
*name, GError **error);
 gboolean rs_picasa_client_upload_photo(PicasaClient *picasa_client, gchar 
*photo, gchar *input_name, gchar *albumid, GError **error);
-PicasaClient * rs_picasa_client_init();
+PicasaClient * rs_picasa_client_init(void);
 
 #endif /* RS_PICASA_CLIENT_H */

Modified: trunk/plugins/resample/resample-sse2.c
===================================================================
--- trunk/plugins/resample/resample-sse2.c      2011-03-27 17:58:33 UTC (rev 
3937)
+++ trunk/plugins/resample/resample-sse2.c      2011-03-27 18:04:31 UTC (rev 
3938)
@@ -35,7 +35,7 @@
        guint new_size;                         /* New size in the direction of 
the resampler */
        guint dest_offset_other;        /* Where in the unchanged direction 
should we begin writing? */
        guint dest_end_other;           /* Where in the unchanged direction 
should we stop writing? */
-       guint (*resample_support)();
+       guint (*resample_support)(void);
        gfloat (*resample_func)(gfloat);
        GThread *threadid;
        gboolean use_compatible;        /* Use compatible resampler if 
pixelsize != 4 */
@@ -47,7 +47,7 @@
 static inline guint clampbits(gint x, guint n) { guint32 _y_temp; if( 
(_y_temp=x>>n) ) x = ~_y_temp >> (32-n); return x;}
 
 static guint
-lanczos_taps()
+lanczos_taps(void)
 {
        return 3;
 }

Modified: trunk/plugins/resample/resample.c
===================================================================
--- trunk/plugins/resample/resample.c   2011-03-27 17:58:33 UTC (rev 3937)
+++ trunk/plugins/resample/resample.c   2011-03-27 18:04:31 UTC (rev 3938)
@@ -56,7 +56,7 @@
        guint new_size;                         /* New size in the direction of 
the resampler */
        guint dest_offset_other;        /* Where in the unchanged direction 
should we begin writing? */
        guint dest_end_other;           /* Where in the unchanged direction 
should we stop writing? */
-       guint (*resample_support)();
+       guint (*resample_support)(void);
        gfloat (*resample_func)(gfloat);
        GThread *threadid;
        gboolean use_compatible;        /* Use compatible resampler if 
pixelsize != 4 */
@@ -507,7 +507,7 @@
 }
 
 static guint
-lanczos_taps()
+lanczos_taps(void)
 {
        return 3;
 }

Modified: trunk/src/application.c
===================================================================
--- trunk/src/application.c     2011-03-27 17:58:33 UTC (rev 3937)
+++ trunk/src/application.c     2011-03-27 18:04:31 UTC (rev 3938)
@@ -321,7 +321,7 @@
  * piped to a file for further processing.
  */
 void
-test()
+test(void)
 {
        if (!g_file_test("testimages", G_FILE_TEST_EXISTS))
        {
@@ -546,13 +546,13 @@
 static GStaticRecMutex gdk_lock = G_STATIC_REC_MUTEX_INIT;
 
 static void
-rs_gdk_lock()
+rs_gdk_lock(void)
 {
        g_static_rec_mutex_lock (&gdk_lock);
 }
 
 static void
-rs_gdk_unlock()
+rs_gdk_unlock(void)
 {
        g_static_rec_mutex_unlock (&gdk_lock);
 }
@@ -655,7 +655,7 @@
 
 static RS_BLOB* main_blob = NULL;
 
-RS_BLOB* rs_get_blob()
+RS_BLOB* rs_get_blob(void)
 {
        return main_blob;
 }

Modified: trunk/src/application.h
===================================================================
--- trunk/src/application.h     2011-03-27 17:58:33 UTC (rev 3937)
+++ trunk/src/application.h     2011-03-27 18:04:31 UTC (rev 3938)
@@ -91,10 +91,10 @@
 gboolean rs_photo_save(RS_PHOTO *photo, RSFilter *prior_to_resample, RSOutput 
*output,
        gint width, gint height, gboolean keep_aspect, gdouble scale, gint 
snapshot);
 gboolean rs_photo_copy_to_clipboard(RS_PHOTO *photo, RSFilter 
*prior_to_resample, gint width, gint height, gboolean keep_aspect, gdouble 
scale, gint snapshot);
-RS_BLOB *rs_new();
+RS_BLOB *rs_new(void);
 void rs_free(RS_BLOB *rs);
 /* Cheater function to get the main blob - use carefully! */
-RS_BLOB* rs_get_blob();
+RS_BLOB* rs_get_blob(void);
 void rs_set_photo(RS_BLOB *rs, RS_PHOTO *photo);
 void rs_white_black_point(RS_BLOB *rs);
 

Modified: trunk/src/gtk-interface.c
===================================================================
--- trunk/src/gtk-interface.c   2011-03-27 17:58:33 UTC (rev 3937)
+++ trunk/src/gtk-interface.c   2011-03-27 18:04:31 UTC (rev 3938)
@@ -739,7 +739,7 @@
 }
 
 static GtkWidget *
-gui_make_preference_quick_export()
+gui_make_preference_quick_export(void)
 {
        gpointer active;
        QUICK_EXPORT *quick;

Modified: trunk/src/gtk-interface.h
===================================================================
--- trunk/src/gtk-interface.h   2011-03-27 17:58:33 UTC (rev 3937)
+++ trunk/src/gtk-interface.h   2011-03-27 18:04:31 UTC (rev 3938)
@@ -27,13 +27,13 @@
 };
 
 extern void gui_set_busy(gboolean rawstudio_is_busy);
-extern gboolean gui_is_busy();
+extern gboolean gui_is_busy(void);
 extern void gui_status_notify(const char *text);
 extern guint gui_status_push(const char *text) G_GNUC_WARN_UNUSED_RESULT;
 extern void gui_status_pop(const guint msgid);
 extern void icon_set_flags(const gchar *filename, GtkTreeIter *iter, const 
guint *priority, const gboolean *exported);
 extern void gui_dialog_simple(gchar *title, gchar *message);
-extern GtkUIManager *gui_get_uimanager();
+extern GtkUIManager *gui_get_uimanager(void);
 extern void gui_set_values(RS_BLOB *rs, gint x, gint y);
 extern int gui_init(int argc, char **argv, RS_BLOB *rs);
 extern void gui_setprio(RS_BLOB *rs, guint prio);

Modified: trunk/src/rs-actions.c
===================================================================
--- trunk/src/rs-actions.c      2011-03-27 17:58:33 UTC (rev 3937)
+++ trunk/src/rs-actions.c      2011-03-27 18:04:31 UTC (rev 3938)
@@ -56,7 +56,7 @@
 #define RADIOACTION(Action) void rs_action_##Action(GtkRadioAction 
*radioaction, GtkRadioAction *current, RS_BLOB *rs); \
        void rs_action_##Action(GtkRadioAction *radioaction, GtkRadioAction 
*current, RS_BLOB *rs)
 
-static gint copy_dialog_get_mask();
+static gint copy_dialog_get_mask(void);
 static void copy_dialog_set_mask(gint mask);
 
 ACTION(todo)
@@ -521,7 +521,7 @@
 }
 
 static gint
-copy_dialog_get_mask()
+copy_dialog_get_mask(void)
 {
        gint mask = 0;
        if (GTK_TOGGLE_BUTTON(cb_profile)->active)

Modified: trunk/src/rs-histogram.h
===================================================================
--- trunk/src/rs-histogram.h    2011-03-27 17:58:33 UTC (rev 3937)
+++ trunk/src/rs-histogram.h    2011-03-27 18:04:31 UTC (rev 3938)
@@ -31,7 +31,7 @@
 /**
  * Creates a new RSHistogramWidget
  */
-extern GtkWidget *rs_histogram_new();
+extern GtkWidget *rs_histogram_new(void);
 
 /**
  * Set an image to base the histogram of

Modified: trunk/src/rs-photo.h
===================================================================
--- trunk/src/rs-photo.h        2011-03-27 17:58:33 UTC (rev 3937)
+++ trunk/src/rs-photo.h        2011-03-27 18:04:31 UTC (rev 3938)
@@ -52,7 +52,7 @@
  * Allocates a new RS_PHOTO
  * @return A new RS_PHOTO
  */
-extern RS_PHOTO *rs_photo_new();
+extern RS_PHOTO *rs_photo_new(void);
 
 /**
  * Rotates a RS_PHOTO


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to