Date: Thu, 7 Dec 1995 21:29:42 -0500 (EST) From: "Marc G. Fournier" <scrappy@hub.org> To: current@freebsd.org Subject: /usr/lib/libc/gen/assert.c patch Message-ID: <Pine.BSF.3.91.951207212646.29587B-100000@hub.org>
next in thread | raw e-mail | index | archive | help
First off, a disclaimer...I do not know why I had to take out the include of <assert.h> to get this to compile, but when I do take it out, it compiles cleanly, even with 'cc -Wall'... Considering that I don't believe that removing it is a solution, I would like a better solution to the problem, if such exists... *** lib/libc/gen/assert.c.orig Thu Dec 7 21:08:37 1995 --- lib/libc/gen/assert.c Thu Dec 7 21:26:36 1995 *************** *** 36,42 **** #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> ! #include <assert.h> #include <stdio.h> #include <stdlib.h> --- 36,42 ---- #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> ! /* #include <assert.h> */ #include <stdio.h> #include <stdlib.h> *************** *** 48,53 **** (void)fprintf(stderr, "assertion \"%s\" failed: file \"%s\", line %d\n", failedexpr, file, line); ! abort(); /* NOTREACHED */ } --- 48,53 ---- (void)fprintf(stderr, "assertion \"%s\" failed: file \"%s\", line %d\n", failedexpr, file, line); ! (void)abort(); /* NOTREACHED */ } Marc G. Fournier | POP Mail Telnet Acct DNS Hosting scrappy@hub.org | WWW Services Database Services | Knowledge, soon to be: | | Information and scrappy@ki.net | WWW: http://hub.org | Communications, Inc
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.951207212646.29587B-100000>