xiaoxiang781216 commented on a change in pull request #5519:
URL: https://github.com/apache/incubator-nuttx/pull/5519#discussion_r810113074
##########
File path: libs/libc/string/lib_strpbrk.c
##########
@@ -33,15 +33,6 @@
#undef strpbrk /* See mm/README.txt */
FAR char *strpbrk(FAR const char *str, FAR const char *charset)
{
- /* Sanity checking */
-
-#ifdef CONFIG_DEBUG_FEATURES
- if (!str || !charset)
- {
- return NULL;
- }
-#endif
-
Review comment:
Fix this warning wihtout -fno-builtin:
```
string/lib_strpbrk.c: In function 'strpbrk':
Error: string/lib_strpbrk.c:39:7: error: nonnull argument 'str' compared
to NULL [-Werror=nonnull-compare]
if (!str || !charset)
^~~~
Error: string/lib_strpbrk.c:39:15: error: nonnull argument 'charset'
compared to NULL [-Werror=nonnull-compare]
if (!str || !charset)
^~~~~~~~
```
--
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]