[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
patch-2.5.4 compilation warnings (1)
From: |
Bruno Haible |
Subject: |
patch-2.5.4 compilation warnings (1) |
Date: |
Mon, 7 Oct 2002 17:27:27 +0200 |
When compiling patch-2.5.4 on FreeBSD with glibc 2.3 and "gcc -Wall", I get
warnings about missing declarations of abort() and exit(). This is because
<stdlib.h> doesn't get included, and also because HAVE_STDLIB_H doesn't get
defined in config.h. I could get rid of the warnings by the appended quick
hack.
diff -r -c3 patch-2.5.4.bak/argmatch.c patch-2.5.4/argmatch.c
*** patch-2.5.4.bak/argmatch.c Tue Aug 10 01:09:13 1999
--- patch-2.5.4/argmatch.c Sat Oct 5 22:51:37 2002
***************
*** 21,26 ****
--- 21,27 ----
#include "argmatch.h"
#include <stdio.h>
+ #include <stdlib.h>
#ifdef STDC_HEADERS
# include <string.h>
#endif
diff -r -c3 patch-2.5.4.bak/quotearg.c patch-2.5.4/quotearg.c
*** patch-2.5.4.bak/quotearg.c Mon Aug 23 11:55:55 1999
--- patch-2.5.4/quotearg.c Sat Oct 5 22:51:24 2002
***************
*** 56,64 ****
# define UCHAR_MAX ((unsigned char) -1)
#endif
- #if HAVE_STDLIB_H
# include <stdlib.h>
- #endif
#if HAVE_STRING_H
# include <string.h>
--- 56,62 ----
______________________________________________________________________________
Die clevere Geldreserve: der DiBa-Privatkredit. Funktioniert wie ein Dispo,
ist aber viel günstiger! Alle Infos: http://diba.web.de/?mc=021104
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- patch-2.5.4 compilation warnings (1),
Bruno Haible <=