[Xfce4-commits] [xfce/xfce4-session] 01/01: Remove unused checks on configure step

noreply at xfce.org noreply at xfce.org
Sun Apr 28 23:34:08 CEST 2019


This is an automated email from the git hooks/post-receive script.

s   k   u   n   n   y   k       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/xfce4-session.

commit b2249c7b5563204d4bb05c460ee4f0e633112121
Author: Romain Bouvier <skunnyk at alteroot.org>
Date:   Sun Apr 28 23:20:59 2019 +0200

    Remove unused checks on configure step
    
    - We check for unused headers at configure step
    - Fix old C function declaration warnings
---
 configure.ac.in                   | 15 ++++-----------
 xfce4-session/Makefile.am         |  2 +-
 xfce4-session/xfsm-compat-gnome.c |  2 +-
 xfce4-session/xfsm-compat-kde.c   |  2 +-
 4 files changed, 7 insertions(+), 14 deletions(-)

diff --git a/configure.ac.in b/configure.ac.in
index 3679ad1..20554f1 100644
--- a/configure.ac.in
+++ b/configure.ac.in
@@ -65,12 +65,11 @@ LT_INIT([disable-static])
 
 dnl check for standard header files
 AC_HEADER_STDC
-AC_CHECK_HEADERS([asm/unistd.h errno.h fcntl.h limits.h \
-                  netdb.h pwd.h signal.h stdarg.h sys/param.h sys/resource.h \
+AC_CHECK_HEADERS([errno.h fcntl.h \
+                  netdb.h signal.h stdarg.h sys/resource.h \
                   sys/socket.h sys/time.h sys/wait.h sys/utsname.h time.h \
-                  unistd.h sys/param.h sys/user.h sys/sysctl.h math.h sys/types.h])
-AC_CHECK_FUNCS([getaddrinfo gethostbyname gethostname getpwuid setsid \
-                sigaction strdup sync vfork])
+                  unistd.h sys/sysctl.h math.h sys/types.h])
+AC_CHECK_FUNCS([getaddrinfo gethostbyname gethostname setsid strdup])
 
 # Checks for typedefs, structures, and compiler characteristics.
 AC_C_INLINE
@@ -142,12 +141,6 @@ XSESSION_PREFIX=$with_xsession_prefix
 AC_SUBST([XSESSION_PREFIX])
 AC_MSG_RESULT([$with_xsession_prefix])
 
-dnl Check for rm
-AC_PATH_PROG([RM], [rm])
-if test x"$RM" != x""; then
-  AC_DEFINE_UNQUOTED([RM_CMD], ["$RM"], [path to rm])
-fi
-
 dnl Check for legacy session management
 AC_ARG_ENABLE([legacy-sm],
 AC_HELP_STRING([--enable-legacy-sm], [Enable X11R5 session management])
diff --git a/xfce4-session/Makefile.am b/xfce4-session/Makefile.am
index b4a0ddf..3e9b3f6 100644
--- a/xfce4-session/Makefile.am
+++ b/xfce4-session/Makefile.am
@@ -98,7 +98,7 @@ xfce4_session_LDADD =							\
 	$(LIBWNCK_LIBS)							\
 	$(POLKIT_LIBS)							\
 	$(XFCONF_LIBS)							\
-	-lm
+	$(LIBM)
 
 xfce4_session_DEPENDENCIES =						\
 	$(top_builddir)/libxfsm/libxfsm-4.6.la
diff --git a/xfce4-session/xfsm-compat-gnome.c b/xfce4-session/xfsm-compat-gnome.c
index 9b0c413..c949d66 100644
--- a/xfce4-session/xfsm-compat-gnome.c
+++ b/xfce4-session/xfsm-compat-gnome.c
@@ -243,7 +243,7 @@ xfsm_compat_gnome_smproxy_shutdown (void)
 
 
 void
-xfsm_compat_gnome_startup ()
+xfsm_compat_gnome_startup (void)
 {
   if (G_UNLIKELY (gnome_compat_started))
     return;
diff --git a/xfce4-session/xfsm-compat-kde.c b/xfce4-session/xfsm-compat-kde.c
index 877dc7d..1c68343 100644
--- a/xfce4-session/xfsm-compat-kde.c
+++ b/xfce4-session/xfsm-compat-kde.c
@@ -116,7 +116,7 @@ run (const gchar *command)
 
 
 void
-xfsm_compat_kde_startup ()
+xfsm_compat_kde_startup (void)
 {
   gchar command[256];
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list