[webkit-changes] [WebKit/WebKit] 076ada: [bmalloc] Prevent warning when building bmalloc us...

Basuke Suzuki noreply at github.com
Wed Apr 26 15:24:17 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 076ada7d6d7a6e957a6fd99687819def19cd46be
      https://github.com/WebKit/WebKit/commit/076ada7d6d7a6e957a6fd99687819def19cd46be
  Author: Basuke Suzuki <basuke.suzuki at sony.com>
  Date:   2023-04-26 (Wed, 26 Apr 2023)

  Changed paths:
    M Source/bmalloc/CMakeLists.txt

  Log Message:
  -----------
  [bmalloc] Prevent warning when building bmalloc using MSVC without libpas.
https://bugs.webkit.org/show_bug.cgi?id=255996

Reviewed by Yusuke Suzuki.

This is the patch for Windows bmalloc implementation part 3 of N.

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

> 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

Ignore this error on bmalloc MSVC build.

* Source/bmalloc/CMakeLists.txt:

Canonical link: https://commits.webkit.org/263436@main




More information about the webkit-changes mailing list