mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 15:33:39 +02:00
build: Add missing "static" keyword where it should be used
Otherwise we fail to build with -Werror=missing-prototypes. https://bugzilla.gnome.org/show_bug.cgi?id=687385
This commit is contained in:
@@ -30,6 +30,12 @@
|
||||
#include <gmodule.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
void gplugin_a_func (void);
|
||||
void gplugin_clash_func (void);
|
||||
void g_clash_func (void);
|
||||
void gplugin_say_boo_func (void);
|
||||
void gplugin_a_module_func (GModule *module);
|
||||
|
||||
G_MODULE_EXPORT gchar* gplugin_a_state;
|
||||
|
||||
G_MODULE_EXPORT void
|
||||
|
@@ -31,6 +31,14 @@
|
||||
|
||||
G_MODULE_EXPORT gchar* gplugin_b_state;
|
||||
|
||||
const gchar* g_module_check_init (GModule *module);
|
||||
void g_module_unload (GModule *module);
|
||||
|
||||
void gplugin_b_func (void);
|
||||
void gplugin_clash_func (void);
|
||||
void g_clash_func (void);
|
||||
void gplugin_say_boo_func (void);
|
||||
|
||||
G_MODULE_EXPORT const gchar*
|
||||
g_module_check_init (GModule *module)
|
||||
{
|
||||
|
@@ -29,7 +29,8 @@ else \
|
||||
if ((passed+notpassed) % 10000 == 0) g_print ("."); fflush (stdout); \
|
||||
} G_STMT_END
|
||||
|
||||
void g_date_debug_print(GDate* d)
|
||||
static void
|
||||
g_date_debug_print (GDate* d)
|
||||
{
|
||||
if (!d) g_print("NULL!\n");
|
||||
else
|
||||
|
@@ -11,7 +11,8 @@
|
||||
#include <string.h>
|
||||
#include <locale.h>
|
||||
|
||||
void g_date_debug_print(GDate* d)
|
||||
static void
|
||||
g_date_debug_print (GDate* d)
|
||||
{
|
||||
if (!d) g_print("NULL!\n");
|
||||
else
|
||||
|
@@ -13,7 +13,7 @@ typedef struct {
|
||||
} Line;
|
||||
|
||||
|
||||
int
|
||||
static int
|
||||
compare_collate (const void *a, const void *b)
|
||||
{
|
||||
const Line *line_a = a;
|
||||
@@ -22,7 +22,7 @@ compare_collate (const void *a, const void *b)
|
||||
return g_utf8_collate (line_a->str, line_b->str);
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
compare_key (const void *a, const void *b)
|
||||
{
|
||||
const Line *line_a = a;
|
||||
|
Reference in New Issue
Block a user