Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
gThumb
Commits
547c6901
Commit
547c6901
authored
Nov 17, 2013
by
Paolo Bacchilega
Browse files
fixed compiler warnings
parent
4563236e
Changes
108
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
547c6901
...
...
@@ -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 ===========================================================================
...
...
extensions/23hq/actions.c
View file @
547c6901
...
...
@@ -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
=
{
...
...
extensions/23hq/callbacks.c
View file @
547c6901
...
...
@@ -26,6 +26,7 @@
#include
<gthumb.h>
#include
<extensions/export_tools/export-tools.h>
#include
"actions.h"
#include
"callbacks.h"
static
const
GActionEntry
actions
[]
=
{
...
...
extensions/bookmarks/actions.c
View file @
547c6901
...
...
@@ -23,6 +23,7 @@
#include
<config.h>
#include
<gthumb.h>
#include
"dlg-bookmarks.h"
#include
"actions.h"
void
...
...
extensions/bookmarks/callbacks.c
View file @
547c6901
...
...
@@ -25,6 +25,7 @@
#include
<glib-object.h>
#include
<gthumb.h>
#include
"actions.h"
#include
"callbacks.h"
#define BROWSER_DATA_KEY "bookmarks-browser-data"
...
...
extensions/bookmarks/dlg-bookmarks.c
View file @
547c6901
...
...
@@ -22,6 +22,7 @@
#include
<config.h>
#include
<gtk/gtk.h>
#include
<gthumb.h>
#include
"dlg-bookmarks.h"
typedef
struct
{
...
...
extensions/burn_disc/actions.c
View file @
547c6901
...
...
@@ -23,6 +23,7 @@
#include
<config.h>
#include
<glib/gi18n.h>
#include
<gthumb.h>
#include
"actions.h"
#include
"gth-burn-task.h"
...
...
extensions/burn_disc/callbacks.c
View file @
547c6901
...
...
@@ -26,6 +26,7 @@
#include
<gthumb.h>
#include
<extensions/export_tools/export-tools.h>
#include
"actions.h"
#include
"callbacks.h"
static
const
GActionEntry
actions
[]
=
{
...
...
extensions/cairo_io/Makefile.am
View file @
547c6901
...
...
@@ -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@
\"
},"
\
...
...
extensions/cairo_io/cairo-image-surface-svg.c
View file @
547c6901
...
...
@@ -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
)
...
...
extensions/cairo_io/cairo-image-surface-xcf.c
View file @
547c6901
...
...
@@ -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
)
{
...
...
extensions/catalogs/actions.c
View file @
547c6901
...
...
@@ -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"
...
...
extensions/catalogs/callbacks.c
View file @
547c6901
...
...
@@ -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"
...
...
extensions/catalogs/callbacks.h
View file @
547c6901
...
...
@@ -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
);
G
th
File
Data
*
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
,
G
th
File
Data
*
location
,
const
GError
*
error
);
void
catalogs__gth_browser_update_extra_widget_cb
(
GthBrowser
*
browser
);
void
catalogs__gth_browser_file_renamed_cb
(
GthBrowser
*
browser
,
...
...
extensions/catalogs/dlg-add-to-catalog.c
View file @
547c6901
...
...
@@ -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"
...
...
extensions/change_date/actions.c
View file @
547c6901
...
...
@@ -23,6 +23,7 @@
#include
<config.h>
#include
<glib/gi18n.h>
#include
<gthumb.h>
#include
"actions.h"
#include
"dlg-change-date.h"
...
...
extensions/change_date/callbacks.c
View file @
547c6901
...
...
@@ -26,6 +26,7 @@
#include
<gthumb.h>
#include
<extensions/list_tools/list-tools.h>
#include
"actions.h"
#include
"callbacks.h"
static
const
GActionEntry
actions
[]
=
{
...
...
extensions/change_date/dlg-change-date.c
View file @
547c6901
...
...
@@ -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"
...
...
extensions/comments/actions.c
View file @
547c6901
...
...
@@ -22,6 +22,7 @@
#include
<config.h>
#include
<gthumb.h>
#include
"actions.h"
#include
"gth-import-metadata-task.h"
...
...
extensions/comments/callbacks.c
View file @
547c6901
...
...
@@ -27,6 +27,7 @@
#include
<gthumb.h>
#include
<extensions/list_tools/list-tools.h>
#include
"actions.h"
#include
"callbacks.h"
static
const
GActionEntry
actions
[]
=
{
...
...
Prev
1
2
3
4
5
6
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment