Blame SOURCES/autofs-5.1.0-fix-gcc5-complaints.patch

4d476f
autofs-5.1.0 - fix gcc5 complaints
4d476f
4d476f
From: Ian Kent <raven@themaw.net>
4d476f
4d476f
gcc5 is not happy with the way dump_core() and master_get_logopt()
4d476f
are declared inline, remove the inline and let the compiler decide.
4d476f
---
4d476f
 CHANGELOG           |    1 +
4d476f
 daemon/spawn.c      |    2 +-
4d476f
 include/automount.h |    2 +-
4d476f
 include/master.h    |    2 +-
4d476f
 lib/master.c        |    2 +-
4d476f
 5 files changed, 5 insertions(+), 4 deletions(-)
4d476f
4d476f
--- autofs-5.0.7.orig/CHANGELOG
4d476f
+++ autofs-5.0.7/CHANGELOG
4d476f
@@ -192,6 +192,7 @@
4d476f
 - fix handle_mounts() termination condition check.
4d476f
 - fix config old name lookup.
4d476f
 - fix error handling on ldap bind fail.
4d476f
+- fix gcc5 complaints.
4d476f
 
4d476f
 25/07/2012 autofs-5.0.7
4d476f
 =======================
4d476f
--- autofs-5.0.7.orig/daemon/spawn.c
4d476f
+++ autofs-5.0.7/daemon/spawn.c
4d476f
@@ -36,7 +36,7 @@ static pthread_mutex_t spawn_mutex = PTH
4d476f
 
4d476f
 #define MTAB_LOCK_RETRIES	3
4d476f
 
4d476f
-inline void dump_core(void)
4d476f
+void dump_core(void)
4d476f
 {
4d476f
 	sigset_t segv;
4d476f
 
4d476f
--- autofs-5.0.7.orig/include/automount.h
4d476f
+++ autofs-5.0.7/include/automount.h
4d476f
@@ -241,7 +241,7 @@ const char **copy_argv(int argc, const c
4d476f
 int compare_argv(int argc1, const char **argv1, int argc2, const char **argv2);
4d476f
 int free_argv(int argc, const char **argv);
4d476f
 
4d476f
-inline void dump_core(void);
4d476f
+void dump_core(void);
4d476f
 int aquire_lock(void);
4d476f
 void release_lock(void);
4d476f
 int spawnl(unsigned logopt, const char *prog, ...);
4d476f
--- autofs-5.0.7.orig/include/master.h
4d476f
+++ autofs-5.0.7/include/master.h
4d476f
@@ -120,7 +120,7 @@ void master_notify_state_change(struct m
4d476f
 int master_mount_mounts(struct master *, time_t, int);
4d476f
 int dump_map(struct master *, const char *, const char *);
4d476f
 int master_show_mounts(struct master *);
4d476f
-extern inline unsigned int master_get_logopt(void);
4d476f
+unsigned int master_get_logopt(void);
4d476f
 int master_list_empty(struct master *);
4d476f
 int master_done(struct master *);
4d476f
 int master_kill(struct master *);
4d476f
--- autofs-5.0.7.orig/lib/master.c
4d476f
+++ autofs-5.0.7/lib/master.c
4d476f
@@ -1712,7 +1712,7 @@ int master_done(struct master *master)
4d476f
 	return res;
4d476f
 }
4d476f
 
4d476f
-inline unsigned int master_get_logopt(void)
4d476f
+unsigned int master_get_logopt(void)
4d476f
 {
4d476f
 	return master_list ? master_list->logopt : LOGOPT_NONE;
4d476f
 }