Commit 547c6901 authored by Paolo Bacchilega's avatar Paolo Bacchilega
Browse files

fixed compiler warnings

parent 4563236e
......@@ -320,23 +320,7 @@ fi
dnl ===========================================================================
WARN_CFLAGS="-Wall -Wcast-align -Wtype-limits -Wclobbered -Wempty-body -Wignored-qualifiers"
for option in $WARN_CFLAGS; do
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $option"
AC_MSG_CHECKING([whether gcc understands $option])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[has_option=yes],[has_option=no])
if test x$has_option = xyes; then
WARNINGS="$WARNINGS $option"
fi
AC_MSG_RESULT($has_option)
CFLAGS="$SAVE_CFLAGS"
unset has_option
unset SAVE_CFLAGS
done
unset option
CFLAGS="$CFLAGS $WARNINGS"
CFLAGS="$CFLAGS $WARN_CFLAGS $WARN_CXXFLAGS"
dnl ===========================================================================
......
......@@ -25,6 +25,7 @@
#include <gthumb.h>
#include <extensions/flicker_utils/dlg-export-to-flickr.h>
#include <extensions/flicker_utils/flickr-types.h>
#include "actions.h"
static FlickrServer www_23hq_com = {
......
......@@ -26,6 +26,7 @@
#include <gthumb.h>
#include <extensions/export_tools/export-tools.h>
#include "actions.h"
#include "callbacks.h"
static const GActionEntry actions[] = {
......
......@@ -23,6 +23,7 @@
#include <config.h>
#include <gthumb.h>
#include "dlg-bookmarks.h"
#include "actions.h"
void
......
......@@ -25,6 +25,7 @@
#include <glib-object.h>
#include <gthumb.h>
#include "actions.h"
#include "callbacks.h"
#define BROWSER_DATA_KEY "bookmarks-browser-data"
......
......@@ -22,6 +22,7 @@
#include <config.h>
#include <gtk/gtk.h>
#include <gthumb.h>
#include "dlg-bookmarks.h"
typedef struct {
......
......@@ -23,6 +23,7 @@
#include <config.h>
#include <glib/gi18n.h>
#include <gthumb.h>
#include "actions.h"
#include "gth-burn-task.h"
......
......@@ -26,6 +26,7 @@
#include <gthumb.h>
#include <extensions/export_tools/export-tools.h>
#include "actions.h"
#include "callbacks.h"
static const GActionEntry actions[] = {
......
......@@ -21,7 +21,7 @@ enum-types.h: $(HEADER_FILES)
enum-types.c: $(HEADER_FILES)
$(AM_V_GEN)( $(GLIB_MKENUMS) \
--fhead "#include <glib-object.h>\n" \
--fhead "#include <glib-object.h>\n#include \"enum-types.h\"\n" \
--fprod "\n/* enumerations from \"@filename@\" */\n#include \"@filename@\"" \
--vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
......
......@@ -42,9 +42,9 @@ typedef struct {
typedef GthImageClass GthImageSvgClass;
static gpointer gth_image_svg_parent_class;
GType gth_image_svg_get_type (void);
G_DEFINE_TYPE (GthImageSvg, gth_image_svg, GTH_TYPE_IMAGE)
......
......@@ -383,6 +383,7 @@ _cairo_image_surface_paint_layer (cairo_surface_t *image,
mask_row = layer->alpha_mask + (y * layer_width) + x;
rand_gen = NULL;
if (layer->mode == GIMP_LAYER_MODE_DISSOLVE)
rand_gen = g_rand_new_with_seed (DISSOLVE_SEED);
......@@ -988,6 +989,11 @@ _cairo_image_surface_create_from_xcf (GInputStream *istream,
performance (DEBUG_INFO, "end init");
compression = GIMP_COMPRESSION_RLE;
layers = NULL;
layer_offsets = NULL;
colormap = NULL;
data_stream = g_data_input_stream_new (istream);
g_data_input_stream_set_byte_order (data_stream, G_DATA_STREAM_BYTE_ORDER_BIG_ENDIAN);
......@@ -1028,10 +1034,6 @@ _cairo_image_surface_create_from_xcf (GInputStream *istream,
/* properties */
compression = GIMP_COMPRESSION_RLE;
layers = NULL;
colormap = NULL;
read_properties = TRUE;
n_properties = 0;
while (read_properties) {
......
......@@ -23,6 +23,7 @@
#include <config.h>
#include <gthumb.h>
#include <gth-catalog.h>
#include "actions.h"
#include "dlg-add-to-catalog.h"
#include "dlg-catalog-properties.h"
#include "gth-file-source-catalogs.h"
......
......@@ -29,6 +29,7 @@
#include "dlg-organize-files.h"
#include "gth-file-source-catalogs.h"
#include "actions.h"
#include "callbacks.h"
#define BROWSER_DATA_KEY "catalogs-browser-data"
......
......@@ -30,11 +30,11 @@ void catalogs__gth_browser_construct_cb (GthBrowser *browse
void catalogs__gth_browser_update_sensitivity_cb (GthBrowser *browser);
void catalogs__gth_browser_folder_tree_popup_before_cb (GthBrowser *browser,
GthFileSource *file_source,
GFile *folder);
GthFileData *folder);
GFile * catalogs__command_line_files_cb (GList *files);
GthCatalog * catalogs__gth_catalog_load_from_data_cb (const void *buffer);
void catalogs__gth_browser_load_location_after_cb (GthBrowser *browser,
GFile *location,
GthFileData *location,
const GError *error);
void catalogs__gth_browser_update_extra_widget_cb (GthBrowser *browser);
void catalogs__gth_browser_file_renamed_cb (GthBrowser *browser,
......
......@@ -21,6 +21,7 @@
#include <config.h>
#include <gthumb.h>
#include "dlg-add-to-catalog.h"
#include "gth-catalog.h"
#include "gth-file-source-catalogs.h"
......
......@@ -23,6 +23,7 @@
#include <config.h>
#include <glib/gi18n.h>
#include <gthumb.h>
#include "actions.h"
#include "dlg-change-date.h"
......
......@@ -26,6 +26,7 @@
#include <gthumb.h>
#include <extensions/list_tools/list-tools.h>
#include "actions.h"
#include "callbacks.h"
static const GActionEntry actions[] = {
......
......@@ -22,6 +22,7 @@
#include <config.h>
#include <gtk/gtk.h>
#include <gthumb.h>
#include "dlg-change-date.h"
#include "gth-change-date-task.h"
#include "preferences.h"
......
......@@ -22,6 +22,7 @@
#include <config.h>
#include <gthumb.h>
#include "actions.h"
#include "gth-import-metadata-task.h"
......
......@@ -27,6 +27,7 @@
#include <gthumb.h>
#include <extensions/list_tools/list-tools.h>
#include "actions.h"
#include "callbacks.h"
static const GActionEntry actions[] = {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment