Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2007-04-16
17:39 • Closed ticket [1699195fff]: Remove -WX from symbols build in Win32 makefile.vc</... artifact: 965f1c037b user: patthoyts
2007-04-12
20:05 • Ticket [1699195fff]: 1 change artifact: 83f3e10278 user: dkf
12:47 • New ticket [1699195fff]. artifact: 43dacb9516 user: twylite

Remove -WX from symbols build in Win32 makefile.vc

Closed / Rejected1699195fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 20 years ago
Descriptionplain2007-04-12 12:47:33
The MS Visual C 6 makefile.vc for Windows enables the -WX flag on a symbols build, but not on a release build.  -WX turns warnings into errors.

This seems to be backwards -- it is usual to allow warnings in debug builds, but not in the release build?

I suggest that -WX should be enabled in release builds, and not in symbols builds.

For example, in the case of issue 1699183 (Build with symbols fails on Win32 in tclCompCmds.c) I had built a release build without problems.  Later I needed to have a debug build to troubleshoot an extension, and discovered this build problem.

The -WX flag is used in a similar fashion in Tk, Threads, SampleExtension, etc.

With regard to Threads and SampleExtension, see also [1689286] "nmakehlp not building on Win32 with VC" and [1689375] "Update VC makefile for Threads (Fix for bug 1643367)" for changes that affect these makefiles.
dkf Ticket [1699195fff]: 1 change [History diff]2007-04-12 20:05:37
patthoytsplain2007-04-16 17:39:08
Logged In: YES 
user_id=202636
Originator: NO

No. People who build tcl with symbols should already know enough to either fix or report such issues to the tcl developers. The idea is to flag as many bits of dodgy code as possible. If you find it to be a problem you can of course remove the -WX flag from your makefile but having it there serves to force errors to be fixed quite quickly.
There is a better argument for removing the flag from the extension building version of this makefile but again -- people who need symbols are just the ones we would like to see submitting patches to solve the warnings.
Log in (anonymous is fine) to add a comment.