On 28/11/08 12:54, François Ingelrest wrote:
> 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

yes, me too, see attachment, from a "make reconfig" (I had to, to avoid 
a fatal error due to upgrade of my python software). Empty lines added 
(mostly where non-error lines were removed) for the sake of legibility.

Hm, François, is this a console-only version with no multibyte 
capabilities? I have additional warnings in mbyte.c, gui.c, 
gui_gtk_x11.c (and netbeans.c).

The warnings for if_perl.xs and those in the link are, IIUC, 
unavoidable. I suppose the "fuzzy translations" for Chinese are normal too.

The number of times some libraries are repeatedly "removed" hasn't 
stopped astonishing me.


Best regards,
Tony.
-- 
And so, men, we can see that human skin is an even more complex and
fascinating organ than we thought it was, and if we want to keep it
looking good, we have to care for it as though it were our own.  One
approach is to undergo a painful surgical procedure wherein your skin
is turned inside-out, so the young cells are on the outside, but then
of course you have the unpleasant side effect that your insides
gradually fill up with dead old cells and you explode.  So this
procedure is pretty much limited to top Hollywood stars for whom
youthful beauty is a career necessity, such as Elizabeth Taylor and
Orson Welles.
                -- Dave Barry, "Saving Face"

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

make[2]: Entering directory `/root/.build/vim/vim72/src'
GUI_INC_LOC="" GUI_LIB_LOC="" \
		CC="" CPPFLAGS="" CFLAGS="" \
		LDFLAGS=""  srcdir="." \
		./configure --enable-gnome-check   \
		 --enable-perlinterp --enable-pythoninterp \
		--enable-tclinterp --enable-rubyinterp  \
		--enable-cscope --enable-multibyte  \
		   \
		 --with-features=huge  \
		"[EMAIL PROTECTED]"    \
		--with-modified-by="Bill McCarthy (float)" --disable-mzschemeinterp  \
		

make[2]: Leaving directory `/root/.build/vim/vim72/src'
make -f Makefile all
make[2]: Entering directory `/root/.build/vim/vim72/src'

diff.c: In function ‘ex_diffupdate’:
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
diff.c: In function ‘ex_diffpatch’:
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: In function ‘write_viminfo’:
ex_cmds.c:1944: warning: ignoring return value of ‘fchown’, declared with attribute warn_unused_result

ex_docmd.c: In function ‘ex_mkrc’:
ex_docmd.c:8756: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result

fileio.c: In function ‘readfile’:
fileio.c:2217: warning: ignoring return value of ‘dup’, declared with attribute warn_unused_result
fileio.c: In function ‘buf_write’:
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: In function ‘vim_fgets’:
fileio.c:6035: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result

main.c: In function ‘read_stdin’:
main.c:2375: warning: ignoring return value of ‘dup’, declared with attribute warn_unused_result

mbyte.c: In function ‘mb_init’:
mbyte.c:720: warning: ignoring return value of ‘mblen’, declared with attribute warn_unused_result

os_unix.c: In function ‘mch_write’:
os_unix.c:323: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
os_unix.c: In function ‘mch_call_shell’:
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:4000: warning: ignoring return value of ‘dup’, declared with attribute warn_unused_result
os_unix.c:4002: warning: ignoring return value of ‘dup’, declared with attribute warn_unused_result
os_unix.c:4006: 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:4031: 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: In function ‘fill_input_buf’:
ui.c:1823: warning: ignoring return value of ‘dup’, declared with attribute warn_unused_result

window.c: In function ‘win_enter_ext’:
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

gui.c: In function ‘gui_start’:
gui.c:142: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result

gui_gtk_x11.c: In function ‘gui_mch_init’:
gui_gtk_x11.c:3420: warning: not enough variable arguments to fit a sentinel

if_perl.xs: In function ‘perl_init’:
if_perl.xs:463: warning: null argument where non-null required (argument 3)

netbeans.c: In function ‘netbeans_end’:
netbeans.c:1046: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
netbeans.c: In function ‘nb_do_cmd’:
netbeans.c:2309: warning: ignoring return value of ‘strtol’, declared with attribute warn_unused_result

/usr/lib/python2.6/config/libpython2.6.a(posixmodule.o): In function `posix_tmpnam':
/usr/src/packages/BUILD/Python-2.6/./Modules/posixmodule.c:7074: warning: the use of `tmpnam_r' is dangerous, better use `mkstemp'
/usr/lib/python2.6/config/libpython2.6.a(posixmodule.o): In function `posix_tempnam':
/usr/src/packages/BUILD/Python-2.6/./Modules/posixmodule.c:7029: warning: the use of `tempnam' is dangerous, better use `mkstemp'

link.sh: We don't need the SM library!
link.sh: We don't need the SM library!
link.sh: We don't need the SM library!
link.sh: We don't need the ICE library!
link.sh: We don't need the ICE library!
link.sh: We don't need the ICE library!
link.sh: We don't need the nsl library!
link.sh: We don't need the nsl library!
link.sh: We don't need the elf library!
link.sh: We DO need the Xt library.
link.sh: We don't need the Xpm library!
link.sh: We don't need the X11 library!
link.sh: We don't need the Xdmcp library!
link.sh: We don't need the dl library!
link.sh: We don't need the dl library!
link.sh: We don't need the dl library!
link.sh: We don't need the pthread library!
link.sh: We don't need the pthread library!
link.sh: We don't need the m library!
link.sh: We don't need the m library!
link.sh: We don't need the m library!
link.sh: We DO need the perl library.
link.sh: We don't need the crypt library!
link.sh: We don't need the attr library!

/usr/lib/python2.6/config/libpython2.6.a(posixmodule.o): In function `posix_tmpnam':
/usr/src/packages/BUILD/Python-2.6/./Modules/posixmodule.c:7074: warning: the use of `tmpnam_r' is dangerous, better use `mkstemp'
/usr/lib/python2.6/config/libpython2.6.a(posixmodule.o): In function `posix_tempnam':
/usr/src/packages/BUILD/Python-2.6/./Modules/posixmodule.c:7029: warning: the use of `tempnam' is dangerous, better use `mkstemp'

link.sh: Linked fine with a few libraries removed

make[3]: Entering directory `/root/.build/vim/vim72/src/po'

OLD_PO_FILE_INPUT=yes msgfmt -v -o zh_CN.UTF-8.mo zh_CN.UTF-8.po
1637 translated messages, 3 fuzzy translations.
OLD_PO_FILE_INPUT=yes msgfmt -v -o zh_CN.mo zh_CN.po
1637 translated messages, 3 fuzzy translations.

make[3]: Leaving directory `/root/.build/vim/vim72/src/po'
make[3]: Entering directory `/root/.build/vim/vim72/src/po'

OLD_PO_FILE_INPUT=yes msgfmt -v -o zh_CN.cp936.mo zh_CN.cp936.po
1637 translated messages, 3 fuzzy translations.

make[3]: Leaving directory `/root/.build/vim/vim72/src/po'
make[2]: Leaving directory `/root/.build/vim/vim72/src'
make[1]: Leaving directory `/root/.build/vim/vim72/src'

Raspunde prin e-mail lui