forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commiteacbe94
committed
Clean up minor inconsistencies in pg_attribute_printf() usage.
For some reason we'd never decorated pg_v*printf() withpg_attribute_printf() annotations. There is a convention forhow to label va_list-using printf functions (write zero for thesecond argument), and we use that liberally elsewhere in thecode, but these core functions lacked it. It's not clear howmuch useful checking the compiler can do for calls of these,but we might as well add the annotations.Also, sync win32security.c's log_error() with our normal conventionthat pg_attribute_printf must be attached to a function's declarationnot definition. Apparently this file is only compiled with compilersthat aren't picky about that, but still it'd be better to beconsistent.No back-patch since there's little reason to think we would catchanything.Discussion:https://postgr.es/m/3492412.1663283395@sss.pgh.pa.us1 parentb245138 commiteacbe94
2 files changed
+7
-7
lines changedLines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
204 | 204 |
| |
205 | 205 |
| |
206 | 206 |
| |
207 |
| - | |
| 207 | + | |
208 | 208 |
| |
209 |
| - | |
| 209 | + | |
210 | 210 |
| |
211 |
| - | |
| 211 | + | |
212 | 212 |
| |
213 |
| - | |
| 213 | + | |
214 | 214 |
| |
215 | 215 |
| |
216 | 216 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
| 20 | + | |
| 21 | + | |
20 | 22 |
| |
21 | 23 |
| |
22 | 24 |
| |
23 | 25 |
| |
24 | 26 |
| |
25 |
| - | |
26 |
| - | |
27 |
| - | |
| 27 | + | |
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
|
0 commit comments
Comments
(0)