* Currently, CVS setup.exe does not compile, due to warnings with 'warnings as errors' in effect. How best to change code to avoid warnings?
@ 2002-03-02 10:35 Max Bowsher
0 siblings, 0 replies; 2+ messages in thread
From: Max Bowsher @ 2002-03-02 10:35 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 841 bytes --]
Currently, CVS setup.exe does not compile, due to warnings with 'warnings as
errors' in effect. How best to change code to avoid warnings?
Warning in winsup/bz2lib/bzlib.c:
static char *bzerrorstrings[] = {
"OK"
....
This requires the insertion of a const qualifier. I'm mentioning this in
passing - this change is obviously correct. The main point is the next
warning:
Warning in winsup/w32api/include/windef.h:
typedef int (WINAPI *FARPROC)();
typedef int (WINAPI *NEARPROC)();
typedef int (WINAPI *PROC)();
Since -Wstrict-prototypes is in effect, gcc won't accept empty sets of
brackets to declare a function. Adding void between the brackets solves the
problem _here_, but is this a good thing to do, given that it would break
code using C's unchecked parameters feature with these types?
What do the experts think?
Max.
[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 2688 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: Currently, CVS setup.exe does not compile, due to warnings with 'warnings as errors' in effect. How best to change code to avoid warnings?
@ 2002-03-02 11:14 Robert Collins
0 siblings, 0 replies; 2+ messages in thread
From: Robert Collins @ 2002-03-02 11:14 UTC (permalink / raw)
To: Max Bowsher, cygwin
> -----Original Message-----
> From: Max Bowsher [mailto:maxb@ukf.net]
> What do the experts think?
Hmm, does C++ support the same feature? If not then an ifdef __cplusplus
might do it.
Rob
--
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-03-02 19:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-02 10:35 Currently, CVS setup.exe does not compile, due to warnings with 'warnings as errors' in effect. How best to change code to avoid warnings? Max Bowsher
2002-03-02 11:14 Robert Collins
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).