Closed Bug 462495 Opened 16 years ago Closed 16 years ago

[redux] -Wextra and other mop-up work

Categories

(Tamarin Graveyard :: Virtual Machine, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: lhansen, Unassigned)

Details

Attachments

(1 file, 1 obsolete file)

I turned on -Wextra in the MacOS project file because I need it to diagnose when a "register" variable is being passed by reference or has its address taken - part of the ongoing interpreter cleanup.  Doing so turned up one real bug (in StringBuilder.cpp; I guess we're trying to delete that file but until we do it's still a bug) and several silly comparisons, plus a bunch of warnings about non-volatile vars being clobbered by longjmp.  I've tidied this up; enclosed.

Also in the patch is a change to uniformly turn off C++ exceptions in the Xcode projects.  It looks like the configure.py script does this already for release builds.

Also in the patch is a change to the VC2008 project files to include WordcodeTranslator.cpp; nobody has noticed the absence because it's not normally needed.

(cc'ing Ed & Rick because of a cast inserted in CodegenMIR.cpp.)
Attached patch Patch (obsolete) — Splinter Review
Attachment #345684 - Flags: review?(stejohns)
Comment on attachment 345684 [details] [diff] [review]
Patch

I'll never turn down an opportunity to increase warning levels! :-)
Attachment #345684 - Flags: review?(stejohns) → review+
Attached patch New patchSplinter Review
Resubmitting because I turned on -Wextra for the MMgc project too and also compiled with _DEBUG and DEBUGGER turned on - uncovered more gremlins, unsurprisingly.
Attachment #345684 - Attachment is obsolete: true
Attachment #346032 - Flags: review?(stejohns)
Attachment #346032 - Flags: review?(stejohns) → review+
tamarin-redux changeset 1049:b0dfe325e005
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: