- Notifications
You must be signed in to change notification settings - Fork28
Commit513ff52
committed
Suppress compiler warnings when building with --enable-dtrace.
Most versions of "dtrace -h" drop const qualifiers from the declarationsof probe functions (though macOS gets it right). This causes compilerwarnings when we pass in pointers to const. Repair by extending ourexisting post-processing of the probes.h file. To do so, assume that all"char *" arguments should be "const char *"; that seems reasonably safe.Thomas MunroDiscussion:https://postgr.es/m/CAEepm=2j1pWSruQJqJ91ZDzD8w9ZZDsM4j2C6x75C-VryWg-_w@mail.gmail.com1 parentf34f0e4 commit513ff52
1 file changed
+6
-1
lines changedLines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
| 52 | + | |
| 53 | + | |
| 54 | + | |
52 | 55 |
| |
53 | 56 |
| |
54 | 57 |
| |
55 |
| - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
56 | 61 |
| |
57 | 62 |
| |
58 | 63 |
| |
|
0 commit comments
Comments
(0)