Bug 259314

Summary: ProcessThrottler.cpp: error: format specifies type 'unsigned int' but the argument has type 'ProcessAssertionType' [-Werror,-Wformat]
Product: WebKit Reporter: David Kilzer (:ddkilzer) <ddkilzer>
Component: WebKit Misc.Assignee: David Kilzer (:ddkilzer) <ddkilzer>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 159188    
Bug Blocks:    

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.