HomeFreeBSD

MFH: r432865

Description

MFH: r432865

gecko: unbreak with clang/libc++ 4.0

In file included from mozilla/ipc/contentproc/plugin-container.cpp:7:
In file included from ../../dist/include/nsXPCOM.h:10:
In file included from ../../dist/include/nscore.h:20:
In file included from ../../dist/include/mozilla/mozalloc.h:16:
In file included from objdir/dist/stl_wrappers/new:44:
In file included from objdir/dist/system_wrappers/new:3:
/usr/include/c++/v1/new:132:1: error: function declared 'noreturn' after its first declaration
_LIBCPP_NORETURN _LIBCPP_FUNC_VIS void throw_bad_alloc(); // not in C++ spec
^
/usr/include/c++/v1/
config:273:30: note: expanded from macro '_LIBCPP_NORETURN'

  1. define _LIBCPP_NORETURN noreturn ^

../../dist/include/mozilla/throw_gcc.h:35:1: note: declaration missing 'noreturn' attribute is here
__throw_bad_alloc(void)
^

PR: 216186
Submitted by: dim
Obtained from: upstream
Approved by: ports-secteam blanket

Details

Provenance
jbeichAuthored on
Parents
rP432866: multimedia/ffmpeg: backport a crashfix for FFSERVER
Branches
Unknown
Tags
Unknown