]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
src: fix compiler warnings
authorTheodore Ts'o <tytso@mit.edu>
Mon, 22 May 2017 00:29:12 +0000 (20:29 -0400)
committerEryu Guan <eguan@redhat.com>
Mon, 22 May 2017 03:50:51 +0000 (11:50 +0800)
commit7ee1b53d77e5e570d6a0a9e717ba45b4bdec30c1
tree2b37be3f46cfa89eeac41ce7fed5d7b8714aed97
parent9000551d9b7874ba8bc98a3b9dbf2526f3564527
src: fix compiler warnings

Most of the fixes are printf format type warnings, but apparently GCC
6 is smart enough to realize is that if you don't do proper error
checking with posix_memalign, the resulting pointer can be undefined,
and whines about it.  So while fixing this in aio-dio-fcntl-race, I
also cleaned up the error checking and reporting.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
src/aio-dio-regress/aio-dio-eof-race.c
src/aio-dio-regress/aio-dio-fcntl-race.c
src/dio-invalidate-cache.c
src/holetest.c
src/t_rename_overwrite.c