]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: ist: do not put a cast in an array declaration
authorWilly Tarreau <w@1wt.eu>
Wed, 24 May 2023 19:27:39 +0000 (21:27 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 24 May 2023 19:27:39 +0000 (21:27 +0200)
commit4e8720ab783504ec868cf8ca05388ba0e88a7193
treeb4de945d32dc1a99feb8dbf9d4c872e33f17e5a1
parent6777357a5e0d3d45a555253949582f722773a025
BUILD: ist: do not put a cast in an array declaration

TCC is upset by the declaration looking like:

  const unsigned char ist_lc[256] __attribute__((weak)) = ((const unsigned char[256]){ ... });

It was written like this because it's expanded from the _IST_LC macro
but it's never used as-is, it's only used from ist_lc, which should be
the one containing the cast so that the macro only contains the list of
bytes that can be used in both places. And this assigns more consistent
roles to the lower and upper case macro/variable now, one is typed and
the other one not. No backport is needed.
include/import/ist.h