[Bug 256007] www/spidermonkey185: Fix build with clang 12

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed May 19 17:38:11 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256007

            Bug ID: 256007
           Summary: www/spidermonkey185: Fix build with clang 12
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs at FreeBSD.org
          Reporter: dim at FreeBSD.org

Created attachment 225091
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=225091&action=edit
Fix www/spidermonkey185 build with clang 12

During an exp-run for llvm 12 (see bug 255570), it turned out that
www/spidermonkey185 does not build with clang 12.0.0 [1]:

jsiter.cpp:270:16: error: cannot initialize return object of type 'bool' with
an rvalue of type 'nullptr_t'
        return NULL;
               ^~~~

There are a few more of these cases scattered over the source. The attached
patch fixes them.

[1]
http://package22.nyi.freebsd.org/data/mainamd64PR255570-default/2021-05-08_16h02m24s/logs/errors/spidermonkey185-1.8.5_5.log

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list