diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-06-27 18:44:39 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-06-28 01:45:23 +0000 |
commit | 0930fe4cffc3f9b4a8ef9168a72fdb05c8f1bcb8 (patch) | |
tree | 15a08bca21ea3bbf21e1a1c9a24d0507ecb0b71b /dumpcap.c | |
parent | b8273a1497ce7743fb5a818b70aa88d69a9f2b96 (diff) | |
download | wireshark-0930fe4cffc3f9b4a8ef9168a72fdb05c8f1bcb8.tar.gz |
Clean up the "non-constant initalizers" stuff.
We aren't, in this branch, insisting on C99 on UN*X, so we still warn
against initializing aggregates, even if they have automatic storage
duration, with non-constant values. Put that into its own section, with
some details, and take that out of the section on initializing global
and static variables with non-constant values.
(In practice, it'll probably Just Work, but we haven't pulled any of the
*other* C99isms into this branch, and this branch is soon going to be
less active once 2.4 is out, so we'll just leave the restrictions in.)
For the latter section, expand the example in the hopes of avoiding
confusion between "static storage duration" (which something declared
"static" has, but which anything declared with file scope, whether
declared "static" or not, also has) and "static storage duration and
internal linkage", which is what the "static" keyword specifies.
Change-Id: I5a7d307f0cb3be84e355b92231fb115359d0cd41
Reviewed-on: https://code.wireshark.org/review/22436
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'dumpcap.c')
0 files changed, 0 insertions, 0 deletions