]> git.ipfire.org Git - thirdparty/gcc.git/commit
Add documentation for -Wflex-array-member-not-at-end.
authorQing Zhao <qing.zhao@oracle.com>
Fri, 4 Aug 2023 14:24:32 +0000 (14:24 +0000)
committerQing Zhao <qing.zhao@oracle.com>
Fri, 4 Aug 2023 14:24:32 +0000 (14:24 +0000)
commit44e3f39a3d5f08ac4129c0558a90e297d2dd1e30
tree45e33a40c8a0db363c0922e7344f438ea33cf9da
parentabf953042ace471720c1dc284b5f38e546fc0595
Add documentation for -Wflex-array-member-not-at-end.

'-Wflex-array-member-not-at-end (C and C++ only)'
     Warn when a structure containing a C99 flexible array member as the
     last field is not at the end of another structure.  This warning
     warns e.g.  about

          struct flex  { int length; char data[]; };
          struct mid_flex { int m; struct flex flex_data; int n; };

gcc/ChangeLog:

* doc/invoke.texi (-Wflex-array-member-not-at-end): Document
new option.
gcc/doc/invoke.texi