I was unable to register to the bug tracker. So reporting here.

../../src/misc.c: In function '_gcry_log_printsxp':../../src/misc.c:439:16: 
warning: assignment discards 'const' qualifier from pointer target type 
[-Wdiscarded-qualifiers]
  439 |           pend = strchr (p, '\n');
     |                ^

../../tests/testdrv.c: In function 'my_spawn':
../../tests/testdrv.c:533:15: warning: assignment discards 'const' qualifier 
from pointer target type [-Wdiscarded-qualifiers]
  533 |   arg_list[0] = strrchr (pgmname, '/');
      |               ^

Ref: https://lists.gnu.org/archive/html/info-gnu/2026-01/msg00005.html

For ISO C23, the functions bsearch, memchr, strchr, strpbrk, strrchr, strstr, 
wcschr, wcspbrk, wcsrchr, wcsstr and wmemchr that return pointers into their 
input arrays now have definitions as macros that return a pointer to a 
const-qualified type when the input argument is a pointer to a const-qualified 
type.
_______________________________________________
Gnupg-devel mailing list
[email protected]
https://lists.gnupg.org/mailman/listinfo/gnupg-devel

Reply via email to