summary refs log tree commit diff
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/Makefile3
-rw-r--r--misc/init-misc.c7
2 files changed, 9 insertions, 1 deletions
diff --git a/misc/Makefile b/misc/Makefile
index 1631b2121d..5bdb8252ed 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -71,3 +71,6 @@ $(objpfx)libbsd-compat.a: $(objpfx)bsd-compat.o
 	ln $< $@
 
 $(objpfx)libg.a: $(dep-dummy-lib); $(make-dummy-lib)
+
+
+CFLAGS-init-misc.c = -fkeep-inline-functions
diff --git a/misc/init-misc.c b/misc/init-misc.c
index bf89e9ec0f..05e697d43b 100644
--- a/misc/init-misc.c
+++ b/misc/init-misc.c
@@ -25,7 +25,12 @@ char *__progname = (char *) "";
 weak_alias (__progname_full, program_invocation_name)
 weak_alias (__progname, program_invocation_short_name)
 
-void
+
+static void __init_misc (int argc, char **argv, char **envp)
+  __attribute__ ((unused));
+
+
+static void
 __init_misc (int argc, char **argv, char **envp)
 {
   if (argv && argv[0])