yamt opened a new pull request, #1124: URL: https://github.com/apache/incubator-nuttx-apps/pull/1124
## Summary Use -fno-builtin for SYMTABOBJ The code generated by tools/mksymtab.sh uses ``` extern void *var; ``` for ~everything. After the recent removal of -fno-builtin, [1] it ends up with warnings: * -Wbuiltin-requires-header for clang * -Wbuiltin-declaration-mismatch for gcc It also generates errors like the following for clang: ``` symtab_apps.c:125:14: error: redefinition of 'strdup' as different kind of symbol extern void *strdup; ``` I couldn't find a way to disable it. (it's err_redefinition_different_kind in clang source) This commit works it around by restoring -fno-builtin when building SYMTABOBJ. [1] https://github.com/apache/incubator-nuttx/pull/5476 ## Impact ## Testing tested with my app + sim/linux + clang -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
