On Thu, Nov 4, 2021 at 1:43 AM Johannes Schindelin <Johannes.Schindelin@xxxxxx> wrote: > My best guess is that my GCC (which is v11.2.0) and Fedora's GCC (which is > v11.2.1 plus the usual Fedora customization) behave slightly differently > with respect to that optional `size-index` argument: > `pthread_setspecific()` is essentially declared without a `size-index`, so > I guess GCC v11.2.1 probably defaults to `size-index = 1`. Got to read the whole explanation that Victoria put together. for the warning to trigger on that gcc, you got also to have the attribute in the header as shown by the link[1] she provided, and which I am sure could be a nice thing to send toward those helpful folks of the MSYS2 project so it can be added to their WinPthread headers, as was done in glibc. Carlo [1] https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=a1561c3bbe8