On 2/2/24 01:53, Bruno Haible wrote:
* For functions whose second argument is a character, such as 'strchr',
   we can probably play with __builtin_constant_p.

Another idea is to suppress the warnings in a library module where the warnings are a false alarm. For example, mbschr.c calls strchr only when MB_CUR_MAX is 1, so that warning about strchr is bogus. As I vaguely recall, the warnings Bjarni mentioned are in this category.

Reply via email to