Bug 259314 - ProcessThrottler.cpp: error: format specifies type 'unsigned int' but the argument has type 'ProcessAssertionType' [-Werror,-Wformat]
Summary: ProcessThrottler.cpp: error: format specifies type 'unsigned int' but the arg...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: David Kilzer (:ddkilzer)
URL:
Keywords: InRadar
Depends on: 159188
Blocks:
  Show dependency treegraph
 
Reported: 2023-07-18 13:43 PDT by David Kilzer (:ddkilzer)
Modified: 2023-07-18 15:22 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Kilzer (:ddkilzer) 2023-07-18 13:43:13 PDT
```
In file included from BuiltProducts/DerivedSources/WebKit/unified-sources/UnifiedSource62.cpp:7:
 Source/WebKit/UIProcess/ProcessThrottler.cpp:175:144: error: format specifies type 'unsigned int' but the argument has type 'ProcessAssertionType' [-Werror,-Wformat]
  175 |     PROCESSTHROTTLER_RELEASE_LOG("setThrottleState: Updating process assertion type to %u (foregroundActivities=%u, backgroundActivities=%u)", newType, m_foregroundActivities.size(), m_backgroundActivities.size());
      |                                                                                        ~~                                                      ^~~~~~~
      |                                                                                        %d
     ...
1 error generated.
```

<rdar://111551983>
Comment 1 David Kilzer (:ddkilzer) 2023-07-18 13:47:08 PDT
Pull request: https://github.com/WebKit/WebKit/pull/15909
Comment 2 EWS 2023-07-18 15:22:42 PDT
Committed 266142@main (190a527ae2a5): <https://commits.webkit.org/266142@main>

Reviewed commits have been landed. Closing PR #15909 and removing active labels.