1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-05-13 15:13:36 +00:00

jit/cache-tests: omit confusing cast.

* tests/jit/test-cache.c (SET_CODE): Omit cast of char * to char *.
This commit is contained in:
Paul Eggert
2026-05-08 13:09:44 -07:00
parent 1f56d56838
commit c64ca1d7da
2 changed files with 4 additions and 1 deletions

View File

@@ -1,5 +1,8 @@
2026-05-08 Paul Eggert <eggert@cs.ucla.edu>
jit/cache-tests: omit confusing cast.
* tests/jit/test-cache.c (SET_CODE): Omit cast of char * to char *.
wait-process: omit confusing cast
* lib/wait-process.c (wait_subprocess): Omit confusing cast.

View File

@@ -116,7 +116,7 @@ struct func
# else
# define CODE(funcptr) ((char *) (funcptr) - clang_ubsan_workaround)
# define SET_CODE(funcptr,code_addr) \
((void) ((funcptr) = (void *) ((char *) (code_addr) + clang_ubsan_workaround)))
((void) ((funcptr) = (void *) ((code_addr) + clang_ubsan_workaround)))
# define IS(funcptr) ((void) (funcptr), 0)
# define SET_IS(funcptr,is) ((void) (funcptr), (void) (is))
# endif