[LU-239] Lustre Header (include/lprocfs_status.h) is not ISO C99 complaint Created: 26/Apr/11 Updated: 13/Jun/11 Due: 06/May/11 Resolved: 13/Jun/11 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.0.0 |
| Fix Version/s: | Lustre 2.1.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Lai Siyao | Assignee: | Lai Siyao |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
ISO C99 |
||
| Severity: | 3 |
| Bugzilla ID: | 23,787 |
| Epic: | C99, ISO |
| Rank (Obsolete): | 5047 |
| Description |
|
Lustre Header (include/lprocfs_status.h) is not ISO C99 complaint. In particular, there is a small section in lustre/include/lprocfs_status.h that fails to compile with PGI. This involves the use of a GCC extension in lprocfs_status.h for flexible arrays: 161 struct lprocfs_percpu { 162 struct lprocfs_counter lp_cntr[0]; 163 }; In this particular case, the nature of the extension is that the flexible array is the sole member 161 struct lprocfs_percpu { 162 int lp_pad; 163 struct lprocfs_counter lp_cntr[0]; 164 }; |
| Comments |
| Comment by Build Master (Inactive) [ 08/May/11 ] |
|
Integrated in Oleg Drokin : 8be13c069909b9ba741885aca963279ebb1cbdd8
|
| Comment by Build Master (Inactive) [ 08/May/11 ] |
|
Integrated in Oleg Drokin : 8be13c069909b9ba741885aca963279ebb1cbdd8
|
| Comment by Build Master (Inactive) [ 08/May/11 ] |
|
Integrated in Oleg Drokin : 8be13c069909b9ba741885aca963279ebb1cbdd8
|
| Comment by Build Master (Inactive) [ 08/May/11 ] |
|
Integrated in Oleg Drokin : 8be13c069909b9ba741885aca963279ebb1cbdd8
|
| Comment by Build Master (Inactive) [ 08/May/11 ] |
|
Integrated in Oleg Drokin : 8be13c069909b9ba741885aca963279ebb1cbdd8
|
| Comment by Build Master (Inactive) [ 08/May/11 ] |
|
Integrated in Oleg Drokin : 8be13c069909b9ba741885aca963279ebb1cbdd8
|
| Comment by Build Master (Inactive) [ 08/May/11 ] |
|
Integrated in Oleg Drokin : 8be13c069909b9ba741885aca963279ebb1cbdd8
|
| Comment by Build Master (Inactive) [ 08/May/11 ] |
|
Integrated in Oleg Drokin : 8be13c069909b9ba741885aca963279ebb1cbdd8
|
| Comment by Build Master (Inactive) [ 08/May/11 ] |
|
Integrated in Oleg Drokin : 8be13c069909b9ba741885aca963279ebb1cbdd8
|
| Comment by Build Master (Inactive) [ 08/May/11 ] |
|
Integrated in Oleg Drokin : 8be13c069909b9ba741885aca963279ebb1cbdd8
|
| Comment by Build Master (Inactive) [ 08/May/11 ] |
|
Integrated in Oleg Drokin : 8be13c069909b9ba741885aca963279ebb1cbdd8
|
| Comment by Build Master (Inactive) [ 08/May/11 ] |
|
Integrated in Oleg Drokin : 8be13c069909b9ba741885aca963279ebb1cbdd8
|
| Comment by Build Master (Inactive) [ 08/May/11 ] |
|
Integrated in Oleg Drokin : 8be13c069909b9ba741885aca963279ebb1cbdd8
|
| Comment by Build Master (Inactive) [ 08/May/11 ] |
|
Integrated in Oleg Drokin : 8be13c069909b9ba741885aca963279ebb1cbdd8
|
| Comment by Peter Jones [ 13/Jun/11 ] |
|
Landed for 2.1 |