]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
compat: avoid unused warn with TEMP_FAILURE_RETRY 1303/head
authorNoah Watkins <noahwatkins@gmail.com>
Sun, 23 Feb 2014 19:14:00 +0000 (11:14 -0800)
committerNoah Watkins <noahwatkins@gmail.com>
Sun, 23 Feb 2014 19:17:42 +0000 (11:17 -0800)
commit0e376ee74251417ff13ba3e1629b75d973b23ee8
tree41189a77d9ca2568a47e626de4831b5a2f96819d
parent614a94ab2f6362dba5d5b90e6d30fd4599485959
compat: avoid unused warn with TEMP_FAILURE_RETRY

The version of TEMP_FAILURE_RETRY found on Linux has a GNU extension
that squashes the unused return value warning where applicable. This
adds a VOID_TEMP_FAILURE_RETRY to make the case explicit, casting the
expression value to void to avoid the warning.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
20 files changed:
src/auth/Crypto.cc
src/common/OutputDataSocket.cc
src/common/admin_socket.cc
src/common/buffer.cc
src/common/pipe.c
src/common/safe_io.c
src/global/global_init.cc
src/global/pidfile.cc
src/include/compat.h
src/log/Log.cc
src/mds/Dumper.cc
src/mon/LogMonitor.cc
src/os/FDCache.h
src/os/FileJournal.cc
src/os/FileStore.cc
src/os/GenericFileStoreBackend.cc
src/os/KeyValueStore.cc
src/os/LFNIndex.cc
src/tools/ceph.cc
src/tools/rados/rados.cc