diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-10-15 23:37:38 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-10-15 23:37:38 -0700 |
commit | c34088b1c1789761f0800c0e3eb83baa483247b7 (patch) | |
tree | 8992be68d669c5a1bee40383953bb2c659e1cd3b /tests/012/compile.tl | |
parent | db49aeca0b8cdf6695c3fc0754274398da0234d5 (diff) | |
download | txr-c34088b1c1789761f0800c0e3eb83baa483247b7.tar.gz txr-c34088b1c1789761f0800c0e3eb83baa483247b7.tar.bz2 txr-c34088b1c1789761f0800c0e3eb83baa483247b7.zip |
args: don't use C99 flexible array member.
The reason is that args_decl_list places struct args
inside a larger struct, where it is followed by another
member. A struct with a flexible array being other than
the last member of another struct is a GNU extension,
which generates warnings on newer GCC versions.
* args.h (struct args): Define arg as array of [1]
rather than [FLEX_ARRAY].
(ARGS_ABS_MIN): Unconditionally define as 1.
(args_decl_list): Subtract 1 from N because we get
one element from struct args. This macro should have
subtracted the FLEX_ARRAY value.
Diffstat (limited to 'tests/012/compile.tl')
0 files changed, 0 insertions, 0 deletions