Commit aed9fa0
committed
Select appropriate PG_PRINTF_ATTRIBUTE for recent NetBSD.
NetBSD-current generates a large number of warnings about "%m" not
being appropriate to use with *printf functions. While that's true
for their native printf, it's surely not true for snprintf.c, so I
think they have misunderstood gcc's definition of the "gnu_printf"
archetype. Nonetheless, choosing "__syslog__" instead silences the
warnings; so teach configure about that.
Since this is only a cosmetic warning issue (and anyway it depends
on previous hacking to be self-consistent), no back-patch.
Discussion: https://postgr.es/m/16785.1539046036@sss.pgh.pa.us1 parent c481016 commit aed9fa0
3 files changed
+61
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
27 | 44 | | |
28 | 45 | | |
29 | 46 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
39 | 54 | | |
40 | 55 | | |
41 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13583 | 13583 | | |
13584 | 13584 | | |
13585 | 13585 | | |
13586 | | - | |
| 13586 | + | |
| 13587 | + | |
13587 | 13588 | | |
13588 | 13589 | | |
13589 | 13590 | | |
13590 | | - | |
13591 | | - | |
13592 | | - | |
| 13591 | + | |
| 13592 | + | |
13593 | 13593 | | |
13594 | 13594 | | |
13595 | 13595 | | |
| 13596 | + | |
| 13597 | + | |
| 13598 | + | |
| 13599 | + | |
| 13600 | + | |
| 13601 | + | |
| 13602 | + | |
| 13603 | + | |
| 13604 | + | |
| 13605 | + | |
| 13606 | + | |
| 13607 | + | |
13596 | 13608 | | |
| 13609 | + | |
| 13610 | + | |
| 13611 | + | |
| 13612 | + | |
| 13613 | + | |
| 13614 | + | |
| 13615 | + | |
| 13616 | + | |
| 13617 | + | |
| 13618 | + | |
| 13619 | + | |
| 13620 | + | |
13597 | 13621 | | |
13598 | 13622 | | |
13599 | 13623 | | |
13600 | 13624 | | |
13601 | 13625 | | |
13602 | | - | |
| 13626 | + | |
13603 | 13627 | | |
13604 | | - | |
| 13628 | + | |
13605 | 13629 | | |
13606 | 13630 | | |
13607 | 13631 | | |
| 13632 | + | |
| 13633 | + | |
| 13634 | + | |
| 13635 | + | |
| 13636 | + | |
13608 | 13637 | | |
13609 | 13638 | | |
13610 | 13639 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
804 | 804 | | |
805 | 805 | | |
806 | 806 | | |
807 | | - | |
| 807 | + | |
808 | 808 | | |
809 | 809 | | |
810 | 810 | | |
| |||
0 commit comments