[FFmpeg-devel] Various small fixes
Sat Dec 13 18:17:21 CET 2008
On Sat, Dec 13, 2008 at 5:58 PM, Uoti Urpala <uoti.urpala at pp1.inet.fi> wrote:
> On Sat, 2008-12-13 at 17:20 +0100, Anders Gr?nberg wrote:
>> The c99 standard says that a forward declaration of an array of
>> unknown size should not contain the static keyword, it should only be
>> present when the finale size is known. A static forward declaration of
>> an array of unknown size is undefined behavior.
> Where do you think it says this?
6.9.2 - External object definitions
?2 A declaration of an identifier for an object that has file scope
without an initializer, and
without a storage-class specifier or with the storage-class specifier
static, constitutes a
?3 If the declaration of an identifier for an object is a tentative
definition and has internal
linkage, the declared type shall not be an incomplete type.
?22An array type of unknown size is an incomplete type. It is
completed, for an identifier of
that type, by specifying the size in a later declaration (with
internal or external linkage).
18.104.22.168 - Array declarators
?4 If the size is not present, the array type is an incomplete type.
Annex J - Undefined behavior
An identifier for an object with internal linkage and an incomplete
type is declared
with a tentative definition (6.9.2).
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
More information about the ffmpeg-devel