[lkml]   [2001]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
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).


Index: linux_2_4/drivers/isdn/isdn_audio.c
diff -u linux_2_4/drivers/isdn/isdn_audio.c: linux_2_4/drivers/isdn/isdn_audio.c:
--- linux_2_4/drivers/isdn/isdn_audio.c: 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:
--- /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);

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

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