- Notifications
You must be signed in to change notification settings - Fork5
Commitdbbba52
committed
Start using flexible array members
Flexible array members are a C99 feature that avoids "cheating" in thedeclaration of variable-length arrays at the end of structs. WithAutoconf support, this should be transparent for older compilers.We start with one use in gist.h because gcc 4.6 started to raise awarning there. Over time, it can be expanded to other places in thesource, but they will likely need some review of sizeof and offsetofusage. The current change in gist.h appears to be safe in thisregard.1 parent78475b0 commitdbbba52
File tree
4 files changed
+82
-1
lines changed- src/include
- access
4 files changed
+82
-1
lines changedLines changed: 71 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14954 | 14954 |
| |
14955 | 14955 |
| |
14956 | 14956 |
| |
| 14957 | + | |
| 14958 | + | |
| 14959 | + | |
| 14960 | + | |
| 14961 | + | |
| 14962 | + | |
| 14963 | + | |
| 14964 | + | |
| 14965 | + | |
| 14966 | + | |
| 14967 | + | |
| 14968 | + | |
| 14969 | + | |
| 14970 | + | |
| 14971 | + | |
| 14972 | + | |
| 14973 | + | |
| 14974 | + | |
| 14975 | + | |
| 14976 | + | |
| 14977 | + | |
| 14978 | + | |
| 14979 | + | |
| 14980 | + | |
| 14981 | + | |
| 14982 | + | |
| 14983 | + | |
| 14984 | + | |
| 14985 | + | |
| 14986 | + | |
| 14987 | + | |
| 14988 | + | |
| 14989 | + | |
| 14990 | + | |
| 14991 | + | |
| 14992 | + | |
| 14993 | + | |
| 14994 | + | |
| 14995 | + | |
| 14996 | + | |
| 14997 | + | |
| 14998 | + | |
| 14999 | + | |
| 15000 | + | |
| 15001 | + | |
| 15002 | + | |
| 15003 | + | |
| 15004 | + | |
| 15005 | + | |
| 15006 | + | |
| 15007 | + | |
| 15008 | + | |
| 15009 | + | |
| 15010 | + | |
| 15011 | + | |
| 15012 | + | |
| 15013 | + | |
| 15014 | + | |
| 15015 | + | |
| 15016 | + | |
| 15017 | + | |
| 15018 | + | |
| 15019 | + | |
| 15020 | + | |
| 15021 | + | |
| 15022 | + | |
| 15023 | + | |
| 15024 | + | |
| 15025 | + | |
| 15026 | + | |
| 15027 | + | |
14957 | 15028 |
| |
14958 | 15029 |
| |
14959 | 15030 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1110 | 1110 |
| |
1111 | 1111 |
| |
1112 | 1112 |
| |
| 1113 | + | |
1113 | 1114 |
| |
1114 | 1115 |
| |
1115 | 1116 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
144 | 144 |
| |
145 | 145 |
| |
146 | 146 |
| |
147 |
| - | |
| 147 | + | |
148 | 148 |
| |
149 | 149 |
| |
150 | 150 |
| |
|
Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
61 | 61 |
| |
62 | 62 |
| |
63 | 63 |
| |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
64 | 73 |
| |
65 | 74 |
| |
66 | 75 |
| |
|
0 commit comments
Comments
(0)