[Webkit-unassigned] [Bug 255996] New: [bmalloc] Prevent warning when building bmalloc using MSVC without libpas.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 26 10:46:55 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=255996

            Bug ID: 255996
           Summary: [bmalloc] Prevent warning when building bmalloc using
                    MSVC without libpas.
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: bmalloc
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: Basuke.Suzuki at sony.com
                CC: ggaren at apple.com

When build bmalloc without libpas enabled by MSVC, following warning is reported while compiling libpas code:

[1/2457] Building C object Source\bmalloc\CMakeFiles\bmalloc.dir\libpas\src\libpas\iso_heap.c.obj
FAILED: Source/bmalloc/CMakeFiles/bmalloc.dir/libpas/src/libpas/iso_heap.c.obj
C:\PROGRA~1\MICROS~1\2022\PROFES~1\VC\Tools\MSVC\1435~1.322\bin\Hostx64\x64\cl.exe  /nologo -DBUILDING_WEBKIT=1 -DBUILDING_WITH_CMAKE=1 -DBUILDING_bmalloc -DHAVE_CONFIG_H=1 -DNOCRYPT -DNOMINMAX -DPAS_BMALLOC=1 -DUNICODE -DWINVER=0x601 -D_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES=1 -D_CRT_SECURE_NO_WARNINGS -D_GNU_SOURCE -D_HAS_EXCEPTIONS=0 -D_UNICODE -D_WIN32_WINNT=0x601 -D_WINDOWS -D_WINSOCKAPI_="" -IC:\webkit\WebKitLibraries\win\include -IC:\webkit\Source\bmalloc -IC:\webkit\Source\bmalloc\bmalloc -IC:\webkit\Source\bmalloc\libpas\src\libpas /W4 /DWIN32 /D_WINDOWS /O2 /Ob2 /DNDEBUG -MD /wd4018 /wd4060 /wd4068 /wd4100 /wd4127 /wd4146 /wd4189 /wd4201 /wd4244 /wd4245 /wd4251 /wd4275 /wd4267 /wd4305 /wd4309 /wd4312 /wd4324 /wd4389 /wd4456 /wd4457 /wd4458 /wd4459 /wd4505 /wd4611 /wd4646 /wd4701 /wd4702 /wd4706 /wd4715 /wd4722 /wd4723 /wd4805 /wd4838 /wd4840 /wd4996 /wd5205 /wd5054 /wd5055 /Zi /GS /EHa- /EHc- /EHs- /fp:except- /analyze- /bigobj -D_ENABLE_EXTENDED_ALIGNED_STORAGE /utf-8 /validate-charset /Oy- /Zc:lambda /WX /showIncludes /FoSource\bmalloc\CMakeFiles\bmalloc.dir\libpas\src\libpas\iso_heap.c.obj /FdSource\bmalloc\CMakeFiles\bmalloc.dir\ /FS -c C:\webkit\Source\bmalloc\libpas\src\libpas\iso_heap.c
C:\webkit\Source\bmalloc\libpas\src\libpas\iso_heap.c(304): error C2220: the following warning is treated as an error
C:\webkit\Source\bmalloc\libpas\src\libpas\iso_heap.c(304): warning C4206: nonstandard extension used: translation unit is empty

This is because `LIBPAS_ENABLED` is false and entire C file is empty after preprocessing. 
https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-4-c4206?view=msvc-170

It should be okay to ignore this error on bmalloc build.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230426/7eb28d4d/attachment.htm>


More information about the webkit-unassigned mailing list