Closed Bug 1794163 Opened 2 years ago Closed 2 years ago

Fix C++20 -Wenum-float-conversion warning in resistFingerprinting

Categories

(Core :: DOM: Core & HTML, task, P3)

task

Tracking

()

RESOLVED FIXED
107 Branch
Tracking Status
firefox-esr102 --- wontfix
firefox105 --- wontfix
firefox106 --- wontfix
firefox107 --- fixed

People

(Reporter: cpeterson, Assigned: cpeterson)

References

Details

Attachments

(1 file)

C++20 deprecates some operations between enums and floating point types:

https://clang.llvm.org/docs/DiagnosticsReference.html#wenum-float-conversion

toolkit/components/resistfingerprinting/nsRFPService.cpp:428:56 [-Wenum-float-conversion] arithmetic between floating-point type 'double' and enumeration type 'mozilla::nsRFPService::TimeScale'

Component: XSLT → DOM: Core & HTML

C++20 deprecates some operations between enums and floating point types:

https://clang.llvm.org/docs/DiagnosticsReference.html#wenum-float-conversion

toolkit/components/resistfingerprinting/nsRFPService.cpp:428:56 [-Wenum-float-conversion] arithmetic between floating-point type 'double' and enumeration type 'mozilla::nsRFPService::TimeScale'

Pushed by cpeterson@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/77d4387553a6 Fix C++20 -Wenum-float-conversion warning in resistFingerprinting. r=tjr
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 107 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: