Avoid that gcc prints a warning about not checking the result of fgets(). Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> --- mstdump/crd_lib/crdump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mstdump/crd_lib/crdump.c b/mstdump/crd_lib/crdump.c index 451a944..3e3c4bc 100755 --- a/mstdump/crd_lib/crdump.c +++ b/mstdump/crd_lib/crdump.c @@ -504,8 +504,8 @@ static int crd_read_line(IN FILE *fd, OUT char *tmp) { if (!feof(fd)) { int c = fgetc(fd); if (c == '#') { - char* _ptr=fgets (tmp, 300, fd); - (void)_ptr;//avoid warning + if (fgets(tmp, 300, fd)) { + } tmp[0] = 0; continue; } -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html