* -Wmemsize-comparison warning on clang
@ 2015-02-27 18:48 Jack Howarth
0 siblings, 0 replies; only message in thread
From: Jack Howarth @ 2015-02-27 18:48 UTC (permalink / raw)
To: gdb
The gdb-7.9 release produces a warning on clang for -Wmemsize-comparison of...
remote.c:5519:47: warning: size argument in 'strncmp' call is a
comparison [-Wmemsize-comparison]
&& strncmp (p, "core", strlen ("core") != 0))
~~~~~~~~~~~~~~~~^~~~
remote.c:5519:11: note: did you mean to compare the result of 'strncmp' instead?
&& strncmp (p, "core", strlen ("core") != 0))
^ ~
)
remote.c:5519:31: note: explicitly cast the argument to size_t to
silence this warning
&& strncmp (p, "core", strlen ("core") != 0))
^
(size_t)( )
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-02-27 18:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-27 18:48 -Wmemsize-comparison warning on clang Jack Howarth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).