Hi, I've tried to compile a recent setup.exe from the cvs and got an error while compiling mklink2.c about "function declaration isn't a prototype" I've found that in cinstall/Makefile.in the -Werror option is set, so warnings causes compiling failures.
What about this ? As I see there are two solutions for this. 1. remove the -Werror in Makefile.in CFLAGS := @CFLAGS@ -Werror -Winline -Wall -Wpointer-arith -Wcast-align\ ^^^^^^^^ -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \ -Wmissing-declarations -Wcomments 2. fix the bad header. This seems to me the better solution, so a patch for the w32api header is appended. Any comments to this ? Regards Ralf habacker@BRAMSCHE ~/src/cvs.cygwin.com/build/winsup/cinstall $ make gcc -c -g -O2 -Werror -Winline -Wall -Wpointer-arith -Wcast-align -Wwrite-strings -Wstrict-pr ototypes -Wmissing-prototypes -Wmissi ng-declarations -Wcomments ... mklink2.c cc1.exe: warnings being treated as errors /home/habacker/src/cvs.cygwin.com/src/winsup/w32api/include/windef.h:203: warning: function declaration isn't a prototype /home/habacker/src/cvs.cygwin.com/src/winsup/w32api/include/windef.h:204: warning: function declaration isn't a prototype /home/habacker/src/cvs.cygwin.com/src/winsup/w32api/include/windef.h:205: warning: function declaration isn't a prototype /home/habacker/src/cvs.cygwin.com/src/winsup/w32api/include/rpcdce.h:363: warning: function declaration isn't a prototype /home/habacker/src/cvs.cygwin.com/src/winsup/w32api/include/rpcdcep.h:112: warning: function declaration isn't a prototype /home/habacker/src/cvs.cygwin.com/src/winsup/w32api/include/rpcdcep.h:113: warning: function declaration isn't a prototype /home/habacker/src/cvs.cygwin.com/src/winsup/w32api/include/rpc.h:49: warning: function declaration isn't a prototype
w32api_20010110.dif
Description: Binary data
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/