Commit 97e04c7
committed
C11 alignas instead of unions
This changes a few union members that only existed to ensure
alignments and replaces them with the C11 alignas specifier.
This change only uses fundamental alignments (meaning approximately
alignments of basic types), which all C11 compilers must support.
There are opportunities for similar changes using extended alignments,
for example in PGIOAlignedBlock, but these are not necessarily
supported by all compilers, so they are kept as a separate change.
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/46f05236-d4d4-4b4e-84d4-faa500f14691%40eisentraut.org1 parent 266543a commit 97e04c7
File tree
4 files changed
+11
-25
lines changed- src
- backend
- access/common
- commands
- storage/large_object
- include
4 files changed
+11
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | | - | |
| 290 | + | |
291 | 291 | | |
292 | 292 | | |
293 | | - | |
294 | | - | |
295 | 293 | | |
296 | 294 | | |
297 | 295 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1987 | 1987 | | |
1988 | 1988 | | |
1989 | 1989 | | |
1990 | | - | |
| 1990 | + | |
1991 | 1991 | | |
1992 | | - | |
1993 | | - | |
1994 | | - | |
1995 | | - | |
1996 | | - | |
1997 | | - | |
| 1992 | + | |
| 1993 | + | |
1998 | 1994 | | |
1999 | 1995 | | |
2000 | 1996 | | |
| |||
2082 | 2078 | | |
2083 | 2079 | | |
2084 | 2080 | | |
2085 | | - | |
2086 | | - | |
| 2081 | + | |
| 2082 | + | |
2087 | 2083 | | |
2088 | 2084 | | |
2089 | 2085 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
556 | 556 | | |
557 | 557 | | |
558 | 558 | | |
559 | | - | |
| 559 | + | |
560 | 560 | | |
561 | 561 | | |
562 | | - | |
563 | | - | |
564 | 562 | | |
565 | 563 | | |
566 | 564 | | |
| |||
747 | 745 | | |
748 | 746 | | |
749 | 747 | | |
750 | | - | |
| 748 | + | |
751 | 749 | | |
752 | 750 | | |
753 | | - | |
754 | | - | |
755 | 751 | | |
756 | 752 | | |
757 | 753 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1117 | 1117 | | |
1118 | 1118 | | |
1119 | 1119 | | |
1120 | | - | |
1121 | | - | |
1122 | | - | |
| 1120 | + | |
1123 | 1121 | | |
1124 | | - | |
| 1122 | + | |
1125 | 1123 | | |
1126 | | - | |
1127 | | - | |
1128 | | - | |
| 1124 | + | |
1129 | 1125 | | |
1130 | 1126 | | |
1131 | 1127 | | |
| |||
0 commit comments