dummy.c: Conform to exact prototypes
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 30 Aug 2020 05:43:32 +0000 (07:43 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 30 Aug 2020 07:48:34 +0000 (09:48 +0200)
Apparently certain toolchains complain if the symbols in dummy.c do not
exactly match their declarations.  This should not be a problem unless
the compiler has enabled a lot of warnings, and is treating those warnings
as errors, (which is inadvisable except under very special circumstances).
However, it appears that some people are doing that.

This change ensures that they are identical.

src/ui/gui/dummy.c

index f103b7d4e44491fada59887f75f43eea7d0f042d..51c3e2da9f40e1ec7ba630f4e62a5de46c898928 100644 (file)
 
 #include <gtk/gtk.h>
 
+#include "libpspp/compiler.h"
+#include "data/variable.h"
+
+#include "t-test-options.h"
 #include "src/language/stats/chart-category.h"
+#include "src/language/stats/aggregate.h"
 
 const GEnumValue align[1];
 const GEnumValue measure[1];
 const GEnumValue role[1];
 
-const int N_AG_FUNCS = 0;
-const struct ag_func ag_func[1];
-
-int F_8_0;
-
-int var_is_numeric (void);
-int tt_options_dialog_run (void);
-int agr_func_tab (void);
-
-int
-var_is_numeric ()
+bool
+var_is_numeric (const struct variable *v UNUSED)
 {
   assert (0);
   return -1;
 }
 
-int
-tt_options_dialog_run ()
+void
+tt_options_dialog_run (struct tt_options_dialog *x UNUSED)
 {
   assert (0);
-  return -1;
 }
 
-int
-agr_func_tab ()
-{
-  assert (0);
-  return -1;
-}
+const struct agr_func agr_func_tab[] =
+  {
+  };
+
+const struct ag_func ag_func[] = {};
+const int N_AG_FUNCS = 1;