Closed Bug 1634747 Opened 5 years ago Closed 5 years ago

--enable-warnings-as-errors fails with Clang >= 10

Categories

(Core :: Graphics: CanvasWebGL, defect)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1634949
Tracking Status
firefox77 --- fixed

People

(Reporter: jbeich, Unassigned)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

$ c++ --version
FreeBSD clang version 10.0.0 (git@github.com:llvm/llvm-project.git llvmorg-10.0.0-0-gd32170dbd5b)
Target: x86_64-unknown-freebsd13.0
Thread model: posix
InstalledDir: /usr/bin

$ echo "ac_add_options --enable-warnings-as-errors" >>.mozconfig
$ ./mach build
[...]
In file included from UnifiedProtocols11.cpp:83:
In file included from objdir/ipc/ipdl/PCompositorBridge.cpp:26:
In file included from objdir/ipc/ipdl/_ipdlheaders/mozilla/dom/PWebGLParent.h:20:
objdir/dist/include/mozilla/dom/IpdlQueue.h:240:43: error:
      aggregate initialization of type 'mozilla::dom::IpdlQueueBuffer'
      with user-declared constructors is incompatible with C++20
      [-Werror,-Wc++20-compat]
               toSendSync, IpdlQueueBuffer{mId, std::move(mSerializedData)})
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Same as bug 1634949?

Flags: needinfo?(jbeich)

Yep, builds fine now without attachment 9145085 [details] [diff] [review].

Status: NEW → RESOLVED
Closed: 5 years ago
Flags: needinfo?(jbeich)
Resolution: --- → DUPLICATE
Has Regression Range: --- → yes
Keywords: regression
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: