2010-03-05 16:31:33 +01:00
|
|
|
More compiler warning fixes
|
|
|
|
|
|
|
|
These were in SUSE distris for quite some time and got
|
|
|
|
forwardported from 1.8.10 to 1.8.11.
|
|
|
|
|
|
|
|
|
2008-10-14 19:04:59 +02:00
|
|
|
Index: lib/ipmi_sdradd.c
|
|
|
|
===================================================================
|
2015-01-15 16:15:51 +01:00
|
|
|
--- lib/ipmi_sdradd.c.orig 2015-01-14 15:38:00.728760259 +0100
|
|
|
|
+++ lib/ipmi_sdradd.c 2015-01-14 15:38:11.500760430 +0100
|
2008-10-14 19:04:59 +02:00
|
|
|
@@ -38,6 +38,7 @@
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <time.h>
|
|
|
|
#include <fcntl.h>
|
|
|
|
+#include <unistd.h>
|
|
|
|
|
|
|
|
#include <ipmitool/helper.h>
|
|
|
|
#include <ipmitool/log.h>
|
|
|
|
Index: lib/ipmi_hpmfwupg.c
|
|
|
|
===================================================================
|
2015-01-15 16:15:51 +01:00
|
|
|
--- lib/ipmi_hpmfwupg.c.orig 2015-01-14 15:38:00.728760259 +0100
|
|
|
|
+++ lib/ipmi_hpmfwupg.c 2015-01-14 15:38:11.504760430 +0100
|
2008-10-14 19:04:59 +02:00
|
|
|
@@ -40,6 +40,8 @@
|
|
|
|
#include "../src/plugins/lan/md5.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <time.h>
|
|
|
|
+#include <ctype.h>
|
|
|
|
+#include <unistd.h>
|
2014-02-17 16:39:37 +01:00
|
|
|
#include <sys/param.h>
|
2008-10-14 19:04:59 +02:00
|
|
|
|
|
|
|
#if HAVE_CONFIG_H
|
2015-01-15 16:15:51 +01:00
|
|
|
Index: configure.ac
|
2008-10-14 19:04:59 +02:00
|
|
|
===================================================================
|
2015-01-15 16:15:51 +01:00
|
|
|
--- configure.ac.orig 2015-01-14 15:38:00.728760259 +0100
|
|
|
|
+++ configure.ac 2015-01-14 16:29:03.744808956 +0100
|
|
|
|
@@ -25,6 +25,7 @@
|
2008-10-14 19:04:59 +02:00
|
|
|
AC_C_CONST
|
|
|
|
AC_C_INLINE
|
|
|
|
AC_C_BIGENDIAN
|
|
|
|
+AC_GNU_SOURCE
|
|
|
|
|
|
|
|
AC_FUNC_SELECT_ARGTYPES
|
2015-01-15 16:15:51 +01:00
|
|
|
AC_FUNC_STRTOD
|
|
|
|
@@ -32,7 +33,7 @@
|
|
|
|
AC_CHECK_FUNCS([memmove memset strchr strdup strerror])
|
|
|
|
AC_CHECK_FUNCS([getpassphrase])
|
|
|
|
|
|
|
|
-CFLAGS="$CFLAGS -Wall -Wextra -std=c99 -pedantic -Wformat -Wformat-nonliteral"
|
|
|
|
+CFLAGS="$CFLAGS -fno-strict-aliasing -Wreturn-type -std=c99"
|
|
|
|
|
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
LIBTOOL="$LIBTOOL --silent"
|