various code: compiler warnings fixed.

merge-requests/25/merge
Ralph Little 2025-06-05 12:04:52 -07:00
rodzic ee91c211db
commit 0529bab664
5 zmienionych plików z 11 dodań i 8 usunięć

Wyświetl plik

@ -42,7 +42,6 @@
static void gtk3_gamma_curve_destroy (GtkWidget *object); static void gtk3_gamma_curve_destroy (GtkWidget *object);
static void curve_type_changed_callback (GtkWidget *w, gpointer data); static void curve_type_changed_callback (GtkWidget *w, gpointer data);
static void button_realize_callback (GtkWidget *w);
static void button_toggled_callback (GtkWidget *w, gpointer data); static void button_toggled_callback (GtkWidget *w, gpointer data);
static void button_clicked_callback (GtkWidget *w, gpointer data); static void button_clicked_callback (GtkWidget *w, gpointer data);

Wyświetl plik

@ -249,7 +249,7 @@ gsg_close_dialog_callback (GtkWidget * widget, gpointer data)
} }
void void
gsg_message (gchar * title, gchar * message) gsg_message (const gchar * title, const gchar * message)
{ {
GtkWidget *main_vbox, *label; GtkWidget *main_vbox, *label;
GtkWidget *button, *message_dialog; GtkWidget *button, *message_dialog;
@ -289,13 +289,13 @@ gsg_message (gchar * title, gchar * message)
} }
void void
gsg_error (gchar * error) gsg_error (const gchar * error)
{ {
gsg_message ("Error", error); gsg_message ("Error", error);
} }
void void
gsg_warning (gchar * warning) gsg_warning (const gchar * warning)
{ {
gsg_message ("Warning", warning); gsg_message ("Warning", warning);
} }

Wyświetl plik

@ -95,9 +95,9 @@ extern int gsg_make_path (size_t max_len, char *filename_ret,
const char *prefix, const char *dev_name, const char *prefix, const char *dev_name,
const char *postfix); const char *postfix);
extern void gsg_message (gchar *title, gchar * message); extern void gsg_message (const gchar *title, const gchar * message);
extern void gsg_error (gchar * error_message); extern void gsg_error (const gchar * error_message);
extern void gsg_warning (gchar * warning_message); extern void gsg_warning (const gchar * warning_message);
extern int gsg_get_filename (const char *label, const char *default_name, extern int gsg_get_filename (const char *label, const char *default_name,
size_t max_len, char *filename); size_t max_len, char *filename);

Wyświetl plik

@ -118,6 +118,8 @@
static void scan_start (Preview * p); static void scan_start (Preview * p);
static void scan_done (Preview * p); static void scan_done (Preview * p);
// The only call to this has been commented out for some reason. [RL]
#if 0
static gboolean static gboolean
_last_call_time_check(unsigned long interval) _last_call_time_check(unsigned long interval)
{ {
@ -135,7 +137,7 @@ _last_call_time_check(unsigned long interval)
return TRUE; return TRUE;
} }
#endif
static void static void
screen_size_get_dimensions (gint *width, gint *height) screen_size_get_dimensions (gint *width, gint *height)

Wyświetl plik

@ -453,6 +453,7 @@ null_print_func (const gchar * msg)
#endif /* HAVE_LIBGIMP_GIMP_H */ #endif /* HAVE_LIBGIMP_GIMP_H */
#ifdef GIMP_HAVE_RESOLUTION_INFO
static SANE_Word static SANE_Word
get_resolution (SANE_Handle dev) get_resolution (SANE_Handle dev)
{ {
@ -492,6 +493,7 @@ get_resolution (SANE_Handle dev)
DBG (DBG_debug, "get_resolution: finished\n"); DBG (DBG_debug, "get_resolution: finished\n");
return 0; return 0;
} }
#endif
static void static void
update_preview (GSGDialog * dialog, void *arg) update_preview (GSGDialog * dialog, void *arg)