aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-11-05 18:28:27 +0800
committerXan Lopez <xan@igalia.com>2012-11-05 18:31:58 +0800
commit1fd2fe9efbdc3bb26786b8efecf5f8b60e430ac6 (patch)
tree2995abcb8dc23b2ddee8a68faa7edbc9c9dfe610 /embed
parent303bf9e2b4b68b84c1a79c3c04b810682f34c7f3 (diff)
downloadgsoc2013-epiphany-1fd2fe9efbdc3bb26786b8efecf5f8b60e430ac6.tar
gsoc2013-epiphany-1fd2fe9efbdc3bb26786b8efecf5f8b60e430ac6.tar.gz
gsoc2013-epiphany-1fd2fe9efbdc3bb26786b8efecf5f8b60e430ac6.tar.bz2
gsoc2013-epiphany-1fd2fe9efbdc3bb26786b8efecf5f8b60e430ac6.tar.lz
gsoc2013-epiphany-1fd2fe9efbdc3bb26786b8efecf5f8b60e430ac6.tar.xz
gsoc2013-epiphany-1fd2fe9efbdc3bb26786b8efecf5f8b60e430ac6.tar.zst
gsoc2013-epiphany-1fd2fe9efbdc3bb26786b8efecf5f8b60e430ac6.zip
Fix a ton of 'warning: function declaration isn’t a prototype'
New warning flags have been added to gnome-common recently, and we were getting this a lot. Turns out in C 'foo ()' is not the same than 'foo (void)'; the first just means that no information is given about the number of arguments, the second means the function has exactly zero arguments, so add the 'void' thing all over the place when needed.
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-about-handler.c2
-rw-r--r--embed/uri-tester.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/embed/ephy-about-handler.c b/embed/ephy-about-handler.c
index 12f0ad71e..9f4caf665 100644
--- a/embed/ephy-about-handler.c
+++ b/embed/ephy-about-handler.c
@@ -36,7 +36,7 @@
static gchar *css_style = NULL;
static void
-read_css_style ()
+read_css_style (void)
{
GError *error = NULL;
const gchar *file;
diff --git a/embed/uri-tester.c b/embed/uri-tester.c
index f997cd7c4..e71990252 100644
--- a/embed/uri-tester.c
+++ b/embed/uri-tester.c
@@ -75,7 +75,7 @@ static gboolean
uri_tester_parse_file_at_uri (UriTester *tester, const char *fileuri);
static char *
-uri_tester_ensure_data_dir ()
+uri_tester_ensure_data_dir (void)
{
char *folder = NULL;