Re: Compilation warnings in regex.c on macOS Mojave with the Homebrew distribution of gcc version 4.9.4_2

2021-02-16 Thread Paul Eggert
On 2/16/21 10:42 AM, Thomas Shields wrote: 3, The 1st time is via “libc-config.h" in “regex.c”, the 2nd time is via "libc-config.h” via “dynarray.h” via “regex_internal.h” libc-config.h is supposed to be included only once, and that 2nd time is a bug. Thanks for reporting it. I attempted to

Compilation warnings in regex.c on macOS Mojave with the Homebrew distribution of gcc version 4.9.4_2

2021-02-16 Thread Thomas Shields
My configuration is somewhat weird, and this is a very small point given that gcc 4.9 is essentially obsolete and this is only a set of warnings, but it may have other impacts, so I’m reporting it.1. gcc 4 doesn’t support the preprocessor operator “__has_attribute”2. Compiling “regex.c” from