Open Bug 2084061 Opened 26 days ago Updated 17 days ago

Investigate treating NSIS compiler warnings as errors with /WX

Categories

(Firefox :: Installer, enhancement, P3)

Desktop
Windows
enhancement

Tracking

()

People

(Reporter: mferreiro, Assigned: spohl)

References

(Depends on 4 open bugs)

Details

(Whiteboard: [FIDE-engagement])

Attachments

(2 external files)

Bug 2070532 exposed an NSIS compiler warning about an unreferenced
GetPostUpdateTarget function during Firefox packaging. In comment 3,
Aurora suggested considering the /WX flag to treat warnings as errors
and catch similar issues earlier.

Investigate whether we can enable /WX for Firefox's NSIS compilation.

Scope:

  • Identify the relevant makensis invocations in packaging and tests.
  • Verify support in the NSIS version used by our build infrastructure.
  • Assess existing warnings across the relevant build configurations
    and identify any blockers to enabling /WX.
  • Recommend where to enable it and file follow-up bugs as needed.

Expected outcome:
A documented recommendation and, if feasible, a patch enabling /WX,
with validation that compiler warnings cause the affected build step
to fail.

Whiteboard: FIDE-engagement → [FIDE-engagement]
Depends on: 2084918
Depends on: 2085240
Pushed by spohl@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/c6f8a397348c https://hg.mozilla.org/integration/autoland/rev/3a7822e4bfcc Fix existing string-formatting warnings in `moz.configure`. r=firefox-build-system-reviewers,sergesanspaille
Pushed by nfay@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/4fc7662e357c https://hg.mozilla.org/integration/autoland/rev/8f7c31e312e2 Revert "Bug 2084061: Fix existing string-formatting warnings in `moz.configure`. r=firefox-build-system-reviewers,sergesanspaille" for causing mozbuild failures

Backed out for causing mozbuild failures

Backout link

Push with failures

Failure log

Flags: needinfo?(mferreiro)
Flags: needinfo?(mferreiro) → needinfo?(spohl.mozilla.bugs)

(In reply to Norisz Fay [:noriszfay] from comment #5)

Backed out for causing mozbuild failures

Backout link

Push with failures

Failure log

Oh, I didn't mean to land this patch before we had https://phabricator.services.mozilla.com/D336507 reviewed. I'll fix things up and hold it.

Flags: needinfo?(spohl.mozilla.bugs)
Depends on: 2085981
Assignee: mferreiro → spohl.mozilla.bugs
Attachment #9667508 - Attachment description: Bug 2084061: Honor warnings-as-errors when compiling Firefox NSIS scripts. r?#firefox-build-system-reviewers,#browser-installer-reviewers!,yjuglaret! → Bug 2084061: Treat Firefox NSIS compiler warnings as errors. r?#firefox-build-system-reviewers,#browser-installer-reviewers!,yjuglaret!
Severity: -- → N/A
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: