[epiphany] Reenable and placate -Wold-style-definition
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Reenable and placate -Wold-style-definition
- Date: Sun, 8 Nov 2015 00:11:33 +0000 (UTC)
commit 96ddfffc90391c7aceb2414b788be25f31422442
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Sat Nov 7 17:31:19 2015 -0600
Reenable and placate -Wold-style-definition
configure.ac | 2 +-
lib/ephy-nss-glue.c | 4 ++--
lib/ephy-profile-utils.c | 2 +-
lib/ephy-smaps.c | 2 +-
lib/ephy-sqlite-connection.c | 2 +-
lib/ephy-web-app-utils.c | 2 +-
lib/history/ephy-history-types.c | 2 +-
lib/widgets/ephy-middle-clickable-button.c | 2 +-
8 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 4bc6739..688513b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -38,7 +38,7 @@ AX_COMPILER_FLAGS([WARN_CFLAGS], [WARN_LDFLAGS], [$ax_is_release], [-Wdeclaratio
dnl TODO: Remove all of these! These warnings should be fixed, not
dnl silenced. At least, for the most part. -Wswitch-enum really does
dnl seem pretty dumb.
- [-Wno-old-style-definition -Wno-shadow -Wno-format-nonliteral -Wno-deprecated-declarations
-Wno-switch-enum -Wno-switch-default -Wno-redundant-decls -Wno-discarded-qualifiers -Wno-sign-compare])
+ [-Wno-shadow -Wno-format-nonliteral -Wno-deprecated-declarations -Wno-switch-enum -Wno-switch-default
-Wno-redundant-decls -Wno-discarded-qualifiers -Wno-sign-compare])
AC_PROG_CC
diff --git a/lib/ephy-nss-glue.c b/lib/ephy-nss-glue.c
index 2ebd060..37e5470 100644
--- a/lib/ephy-nss-glue.c
+++ b/lib/ephy-nss-glue.c
@@ -82,7 +82,7 @@ ask_for_nss_password (PK11SlotInfo *slot,
return password;
}
-gboolean ephy_nss_glue_init ()
+gboolean ephy_nss_glue_init (void)
{
char *config_dir, *modspec;
SECStatus rv;
@@ -115,7 +115,7 @@ gboolean ephy_nss_glue_init ()
return TRUE;
}
-void ephy_nss_glue_close ()
+void ephy_nss_glue_close (void)
{
if (db_slot) {
PK11_FreeSlot (db_slot);
diff --git a/lib/ephy-profile-utils.c b/lib/ephy-profile-utils.c
index 0430582..d3ba9fe 100644
--- a/lib/ephy-profile-utils.c
+++ b/lib/ephy-profile-utils.c
@@ -28,7 +28,7 @@
#define PROFILE_MIGRATION_FILE ".migrated"
int
-ephy_profile_utils_get_migration_version ()
+ephy_profile_utils_get_migration_version (void)
{
char *migrated_file, *contents = NULL;
gsize size;
diff --git a/lib/ephy-smaps.c b/lib/ephy-smaps.c
index 9f5acd2..65ae25a 100644
--- a/lib/ephy-smaps.c
+++ b/lib/ephy-smaps.c
@@ -487,7 +487,7 @@ ephy_smaps_class_init (EphySMapsClass *smaps_class)
g_type_class_add_private (smaps_class, sizeof (EphySMapsPrivate));
}
-EphySMaps *ephy_smaps_new ()
+EphySMaps *ephy_smaps_new (void)
{
return EPHY_SMAPS (g_object_new (EPHY_TYPE_SMAPS, NULL));
}
diff --git a/lib/ephy-sqlite-connection.c b/lib/ephy-sqlite-connection.c
index 15db90b..0ea678c 100644
--- a/lib/ephy-sqlite-connection.c
+++ b/lib/ephy-sqlite-connection.c
@@ -64,7 +64,7 @@ set_error_from_string (const char* string, GError **error)
}
EphySQLiteConnection *
-ephy_sqlite_connection_new ()
+ephy_sqlite_connection_new (void)
{
return EPHY_SQLITE_CONNECTION (g_object_new (EPHY_TYPE_SQLITE_CONNECTION, NULL));
}
diff --git a/lib/ephy-web-app-utils.c b/lib/ephy-web-app-utils.c
index a9b7da1..8f25760 100644
--- a/lib/ephy-web-app-utils.c
+++ b/lib/ephy-web-app-utils.c
@@ -364,7 +364,7 @@ out:
* Returns: (transfer-full): a #GList of #EphyWebApplication objects
**/
GList *
-ephy_web_application_get_application_list ()
+ephy_web_application_get_application_list (void)
{
GFileEnumerator *children = NULL;
GFileInfo *info;
diff --git a/lib/history/ephy-history-types.c b/lib/history/ephy-history-types.c
index fe3b951..02b4b55 100644
--- a/lib/history/ephy-history-types.c
+++ b/lib/history/ephy-history-types.c
@@ -192,7 +192,7 @@ ephy_history_url_list_free (GList *list)
}
EphyHistoryQuery *
-ephy_history_query_new ()
+ephy_history_query_new (void)
{
return (EphyHistoryQuery*) g_slice_alloc0 (sizeof (EphyHistoryQuery));
}
diff --git a/lib/widgets/ephy-middle-clickable-button.c b/lib/widgets/ephy-middle-clickable-button.c
index 1e6f53e..a03cb4d 100644
--- a/lib/widgets/ephy-middle-clickable-button.c
+++ b/lib/widgets/ephy-middle-clickable-button.c
@@ -62,7 +62,7 @@ ephy_middle_clickable_button_init (EphyMiddleClickableButton *class)
}
GtkWidget *
-ephy_middle_clickable_button_new ()
+ephy_middle_clickable_button_new (void)
{
return gtk_widget_new (EPHY_TYPE_MIDDLE_CLICKABLE_BUTTON, NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]