lkml.org 
[lkml]   [1996]   [Nov]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: un.h in 2.1.6
Date
Curtiss Cicco <1CMC3466@ibm.mtsac.edu> writes:
> While building the XFree86-3.2 package I was getting some warnings
> about a zero-length array in un.h. The offending line is 'unsigned
> char cmsg_data›0º;' and my question is, is this a typo or was this
> intentionally put this way?

Zero-length arrays are a non-standard extension to the C
language. Actually, this extension seems to be quite common, as apart
from GCC also a lot of commerical C compilers accept this
construct. It often makes coding a lot easier/cleaner and as we rely
on a lot of other GCC features anyways, it does not make the kernel
noticeably less portable.



Markus

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.107 / U:4.324 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site