[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Include stdlib.h in sample program
From: |
Paul Waring |
Subject: |
[PATCH] Include stdlib.h in sample program |
Date: |
Thu, 26 Apr 2012 17:42:44 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 |
I tried building the sample program supplied in the ncurses
documentation and got the following warnings:
$ gcc intro.c -lncurses
intro.c: In function ‘finish’:
intro.c:53:3: warning: incompatible implicit declaration of built-in
function ‘exit’ [enabled by default]
[gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)]
This warning can be fixed by including stdlib.h, which declares the
exit() function. I've attached a short patch which updates the
documentation.
Thanks,
Paul
--
Paul Waring
http://www.pwaring.com
ncurses-intro.doc.diff
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] Include stdlib.h in sample program,
Paul Waring <=