# HG changeset patch # User Maxim Dounin # Date 1722992186 -10800 # Node ID ebebc1d680464f36a8a305443f1207965338bca3 # Parent 92e14ce71b72be32a4369eeeab618cc77e2723c5 Core: changed ngx_buf_tag_t to uintptr_t. There is no real difference, but "void *" as previously used results in "ISO C forbids conversion of function pointer to object pointer type" warnings with -Wpedantic when a function pointer is used as a tag. Changing the type to uintptr_t makes the conversion always valid, since any pointer type can be converted to an integer type. diff -r 92e14ce71b72 -r ebebc1d68046 src/core/ngx_buf.h --- a/src/core/ngx_buf.h Wed Aug 07 03:56:23 2024 +0300 +++ b/src/core/ngx_buf.h Wed Aug 07 03:56:26 2024 +0300 @@ -13,7 +13,7 @@ #include -typedef void * ngx_buf_tag_t; +typedef uintptr_t ngx_buf_tag_t; typedef struct ngx_buf_s ngx_buf_t;