lkml.org 
[lkml]   [2001]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] compilation warning fixes

Newer gcc's (particularly the RH 7.0/7.1 2.96 versions) complain about
implicit declaration of the function abs, and AFAICS they're right.

What do people think about the appended patch to fix this?
(There's more users than just isdn_audio.c, that's why I added a common
header file).

--Kai

Index: linux_2_4/drivers/isdn/isdn_audio.c
diff -u linux_2_4/drivers/isdn/isdn_audio.c:1.1.1.1 linux_2_4/drivers/isdn/isdn_audio.c:1.1.1.1.26.1
--- linux_2_4/drivers/isdn/isdn_audio.c:1.1.1.1 Tue Apr 24 00:13:47 2001
+++ linux_2_4/drivers/isdn/isdn_audio.c Mon Apr 30 21:42:11 2001
@@ -25,6 +25,7 @@
#define __NO_VERSION__
#include <linux/module.h>
#include <linux/isdn.h>
+#include <linux/stdlib.h>
#include "isdn_audio.h"
#include "isdn_common.h"

Index: linux_2_4/include/linux/stdlib.h
diff -u /dev/null linux_2_4/include/linux/stdlib.h:1.1.4.3
--- /dev/null Mon Apr 30 23:28:11 2001
+++ linux_2_4/include/linux/stdlib.h Mon Apr 30 23:27:46 2001
@@ -0,0 +1,6 @@
+#ifndef __STDLIB_H__
+#define __STDLIB_H__
+
+extern int abs (int i);
+
+#endif


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:52    [W:0.165 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site