Hi, On Fri, Nov 28, 2008 at 10:08, Bram Moolenaar wrote: > Patch 7.2.050 > Problem: Warnings for not checking return value of fwrite(). (Chip > Campbell) > Solution: Use the return value. > Files: src/spell.c
I still get such warnings, for instance: diff.c:702: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result diff.c:707: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result There are also many other ignored values: diff.c:928: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result diff.c:931: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result ex_cmds.c:1944: warning: ignoring return value of 'fchown', declared with attribute warn_unused_result ex_docmd.c:8756: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result fileio.c:2217: warning: ignoring return value of 'dup', declared with attribute warn_unused_result fileio.c:3452: warning: ignoring return value of 'fchown', declared with attribute warn_unused_result fileio.c:4368: warning: ignoring return value of 'fchown', declared with attribute warn_unused_result fileio.c:6035: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result main.c:2375: warning: ignoring return value of 'dup', declared with attribute warn_unused_result os_unix.c:323: warning: ignoring return value of 'write', declared with attribute warn_unused_result os_unix.c:3930: warning: ignoring return value of 'dup', declared with attribute warn_unused_result os_unix.c:3931: warning: ignoring return value of 'dup', declared with attribute warn_unused_result os_unix.c:3932: warning: ignoring return value of 'dup', declared with attribute warn_unused_result os_unix.c:4017: warning: ignoring return value of 'dup', declared with attribute warn_unused_result os_unix.c:4023: warning: ignoring return value of 'dup', declared with attribute warn_unused_result os_unix.c:4162: warning: ignoring return value of 'write', declared with attribute warn_unused_result ui.c:1823: warning: ignoring return value of 'dup', declared with attribute warn_unused_result window.c:4032: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result window.c:4039: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
