Fix compilation errors
CC: gcov.c gcov.c: In function 'gcov_stdout_dump':
gcov.c:146:50: error: passing argument 3 of '__gcov_info_to_gcda' from incompatible pointer type [-Werror=incompatible-pointer-types]
146 | __gcov_info_to_gcda(info, stdout_filename, stdout_dump, NULL, &arg);
| ^~~~~~~~~~~
| |
| void (*)(const void *, size_t, void *) {aka void (*)(const void *, long unsigned int, void *)}
In file included from gcov.c:25:
/mnt/vela/github/NX/nuttx/include/gcov.h:139:44: note: expected 'void (*)(const void *, unsigned int, void *)' but argument is of type 'void (*)(const void *, size_t, void *)' {aka 'void (*)(const void *, long unsigned int, void *)'}
139 | FAR void (*dump)(FAR const void *,
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
140 | unsigned int, FAR void *),
| ~~~~~~~~~~~~~~~~~~~~~~~~~
libgcc/gcov.c: In function 'gcov_process_path.constprop':
libgcc/gcov.c:235:29: error: 'filename' may be used uninitialized [-Werror=maybe-uninitialized]
235 | tokens[token_count++] = filename;
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
libgcc/gcov.c:189:13: note: 'filename' was declared here
189 | FAR char *filename;
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>