Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 30 Apr 2001 18:43:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 30 Apr 2001 18:43:12 -0400 Received: from pille1.addcom.de ([62.96.128.35]:54535 "HELO pille1.addcom.de") by vger.kernel.org with SMTP id ; Mon, 30 Apr 2001 18:43:05 -0400 Date: Tue, 1 May 2001 00:43:25 +0200 (CEST) From: Kai Germaschewski X-X-Sender: To: Subject: [PATCH] compilation warning fixes Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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 #include +#include #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/