forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7b6468c
committed
Rework macro pgstat_is_ioop_tracked_in_bytes()
As written, it was triggering a compilation warning for old versions ofclang, as reported by buildfarm members ayu, batfish and demoiselle.Forcing a cast with "unsigned int" should fix the warning.While on it, the macro is moved to pgstat.h, closer to the declarationof IOOp, per suggestion from Tom Lane.Reported-by: Tom LaneReviewed-by: Bertrand Drouvot, Tom Lane, Nazir Bilal YavuzDiscussion:https://postgr.es/m/1272824.1736961543@sss.pgh.pa.us1 parentd4a43b2 commit7b6468c
2 files changed
+4
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | 26 | | |
35 | 27 | | |
36 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
317 | 321 | | |
318 | 322 | | |
319 | 323 | | |
| |||
0 commit comments
Comments
(0)