In general, warnings about "ignoring return value" are harmeless. They
simply say that the code at this point doesn't care about the return value
of the called function, which may be intentional.
BR,
Nikos
----- Original Message -----
From: "Julien Buratto" <[email protected]>
To: "sangprabv" <[email protected]>
Cc: "Kannel User" <[email protected]>
Sent: Wednesday, May 27, 2009 6:14 PM
Subject: Re: Warning During make with latest CVS version (snapshot)
warnings are warnings, be warned but don't be scared ;)
j
2009/5/22 sangprabv <[email protected]>:
Hi,
I received these warnings during make:
gwlib/gwthread-pthread.c: In function ‘gwthread_wakeup’:
gwlib/gwthread-pthread.c:679: warning: ignoring return value of ‘write’,
declared with attribute warn_unused_result
gwlib/utils.c: In function ‘become_daemon’:
gwlib/utils.c:219: warning: ignoring return value of ‘dup’, declared
with attribute warn_unused_result
gwlib/utils.c:220: warning: ignoring return value of ‘dup’, declared
with attribute warn_unused_result
gwlib/utils.c:222: warning: ignoring return value of ‘chdir’, declared
with attribute warn_unused_result
utils/start-stop-daemon.c: In function ‘main’:
utils/start-stop-daemon.c:918: warning: ignoring return value of
‘chdir’, declared with attribute warn_unused_result
utils/start-stop-daemon.c:926: warning: ignoring return value of ‘dup’,
declared with attribute warn_unused_result
utils/start-stop-daemon.c:927: warning: ignoring return value of ‘dup’,
declared with attribute warn_unused_result
Is it normal?
Willy
--
Julien Buratto