Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 133ec45a0d82bed35f4625a5cbaf2693be63fabc
      
https://github.com/WebKit/WebKit/commit/133ec45a0d82bed35f4625a5cbaf2693be63fabc
  Author: Fujii Hironori <[email protected]>
  Date:   2025-09-21 (Sun, 21 Sep 2025)

  Changed paths:
    M Source/WebKit/WPEPlatform/wpe/drm/WPEDisplayDRM.cpp

  Log Message:
  -----------
  REGRESSION(300282@main): Fix -Wformat warning in WPEDisplayDRM.cpp
https://bugs.webkit.org/show_bug.cgi?id=299262

Reviewed by Carlos Garcia Campos.

> WPEDisplayDRM.cpp:379:23: warning: format ‘%s’ expects argument of type 
> ‘char*’, but argument 5 has type ‘std::span<const 
> WTF::Latin1Character>::pointer’ {aka ‘const WTF::Latin1Character*’} 
> [-Wformat=]

`%s` format specifier expects `char*` rather than `Latin1Character*`.
To solve the problem, rather than using `byteCast<char>` here, pass
the return value of getenv() directly to g_warning(), and use `%s`
instead of `%*s`.

* Source/WebKit/WPEPlatform/wpe/drm/WPEDisplayDRM.cpp:
(wpeDisplayDRMSetup):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to