toys: fix compiler warnings
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
## Copyright (C) 2008-2013 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||
## Copyright (C) 2008-2017 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||
##
|
||||
## This program is free software; you can redistribute it and/or modify
|
||||
## it under the terms of the GNU General Public License as published by
|
||||
@ -28,8 +28,13 @@ AM_CPPFLAGS=-I${top_srcdir} -I${top_srcdir}/lib $(GTK_CFLAGS) $(WEBKIT_CFLAGS) \
|
||||
# don't use -Werror, as it might break on other compilers
|
||||
# use -Wno-unused-parameters, because some callbacks may not
|
||||
# really need all the params they get
|
||||
AM_CFLAGS=-Wall -Wextra -Wno-unused-parameter -Wdeclaration-after-statement
|
||||
AM_CXXFLAGS=-Wall -Wextra -Wno-unused-parameter
|
||||
AM_CFLAGS= \
|
||||
$(WARN_CFLAGS) \
|
||||
-Wno-redundant-decls \
|
||||
-Wno-deprecated-declarations \
|
||||
-Wno-switch-enum
|
||||
|
||||
AM_CXXFLAGS=$(WARN_CXXFLAGS)
|
||||
|
||||
noinst_PROGRAMS= \
|
||||
mug
|
||||
@ -58,13 +63,11 @@ dummy.cc:
|
||||
DISTCLEANFILES= \
|
||||
$(BUILT_SOURCES)
|
||||
|
||||
|
||||
mug_LDADD= \
|
||||
${top_builddir}/lib/libmu.la \
|
||||
libmuwidgets.la \
|
||||
${GTK_LIBS}
|
||||
|
||||
|
||||
noinst_LTLIBRARIES= \
|
||||
libmuwidgets.la
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
** Copyright (C) 2011-2013 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||
** Copyright (C) 2011-2017 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||
**
|
||||
** This program is free software; you can redistribute it and/or modify it
|
||||
** under the terms of the GNU General Public License as published by the
|
||||
@ -319,7 +319,7 @@ mu_msg_body_view_new (void)
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
static void
|
||||
set_html (MuMsgBodyView *self, const char* html)
|
||||
{
|
||||
g_return_if_fail (MU_IS_MSG_BODY_VIEW(self));
|
||||
|
||||
@ -142,7 +142,7 @@ add_row (GtkWidget *grid, guint row, const char* fieldname, const char *value,
|
||||
}
|
||||
|
||||
|
||||
GtkWidget *
|
||||
static GtkWidget*
|
||||
get_grid (MuMsg *msg)
|
||||
{
|
||||
GtkWidget *grid;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
** Copyright (C) 2010-2013 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||
** Copyright (C) 2010-2017 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||
**
|
||||
** This program is free software; you can redistribute it and/or modify it
|
||||
** under the terms of the GNU General Public License as published by the
|
||||
@ -331,8 +331,8 @@ mug_main_area (MugData * mugdata)
|
||||
return mainarea;
|
||||
}
|
||||
|
||||
GtkWidget *
|
||||
mug_shell (MugData * mugdata)
|
||||
static GtkWidget*
|
||||
mug_shell (MugData *mugdata)
|
||||
{
|
||||
GtkWidget *vbox;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user