summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-02-06 17:18:22 +0100
committerraveit65 <[email protected]>2020-03-10 12:27:05 +0100
commitab02da75a6bd398c23a035354848100687d54dc1 (patch)
treeee806910645f5d992f48a82c7a8b8d89bd695e52
parent6492d06d01c1b6b8bca3efa2445b926e7b738c8d (diff)
downloadmate-calc-ab02da75a6bd398c23a035354848100687d54dc1.tar.bz2
mate-calc-ab02da75a6bd398c23a035354848100687d54dc1.tar.xz
Remove warnings: function declaration isn’t a prototype
-rw-r--r--src/currency-manager.c4
-rw-r--r--src/test-mp-equation.c4
-rw-r--r--src/test-mp.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/currency-manager.c b/src/currency-manager.c
index 1299522..5ffffa4 100644
--- a/src/currency-manager.c
+++ b/src/currency-manager.c
@@ -167,7 +167,7 @@ currency_manager_get_currency(CurrencyManager *manager, const gchar *name)
static char *
-get_imf_rate_filepath()
+get_imf_rate_filepath(void)
{
return g_build_filename(g_get_user_cache_dir (),
"mate-calc",
@@ -177,7 +177,7 @@ get_imf_rate_filepath()
static char *
-get_ecb_rate_filepath()
+get_ecb_rate_filepath(void)
{
return g_build_filename(g_get_user_cache_dir (),
"mate-calc",
diff --git a/src/test-mp-equation.c b/src/test-mp-equation.c
index ac9b000..d31c546 100644
--- a/src/test-mp-equation.c
+++ b/src/test-mp-equation.c
@@ -119,7 +119,7 @@ do_convert(const MPNumber *x, const char *x_units, const char *z_units, MPNumber
static void
-test_conversions()
+test_conversions(void)
{
memset(&options, 0, sizeof(options));
options.base = 10;
@@ -187,7 +187,7 @@ set_variable(const char *name, const MPNumber *x, void *data)
}
static void
-test_equations()
+test_equations(void)
{
memset(&options, 0, sizeof(options));
options.wordlen = 32;
diff --git a/src/test-mp.c b/src/test-mp.c
index 78b1a5b..14edadd 100644
--- a/src/test-mp.c
+++ b/src/test-mp.c
@@ -88,7 +88,7 @@ test_integer(int number)
static void
-test_numbers()
+test_numbers(void)
{
test_integer(0);
test_integer(1);
@@ -131,7 +131,7 @@ try(const char *string, bool result, bool expected)
static void
-test_mp()
+test_mp(void)
{
MPNumber zero = mp_new();
MPNumber one = mp_new();