Re: [PATCH] gdb: Fix build error on macOS

2021-10-05 Thread Bruno Haible
Enze Li wrote: > > PR build/28413 notes that the gdb master fails to build on macOS. The build fails due to the combination of '-Werror' and a useful warning emitted by Gnulib. But Gnulib does not support '-Werror'. To fix the issue, you need to filter out the '-Werror' option. Or not add it in t

Re: [PATCH] gdb: Fix build error on macOS

2021-10-05 Thread Enze Li
[ add bug-gnulib@gnu.org ] On 10/4/21 6:03 PM, Enze Li via Gdb-patches wrote: > PR build/28413 notes that the gdb master fails to build on macOS. > > Based on De Morgan's law, the expression > !(defined __GNUC__ && !defined __clang__ && __OPTIMIZE__) > is equal to (!defined __GNUC__ || defined __