]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rados: Add noreturn attribute to silence uninitialized warning 19348/head
authorAdam C. Emerson <aemerson@redhat.com>
Tue, 5 Dec 2017 19:29:48 +0000 (14:29 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Tue, 5 Dec 2017 20:03:01 +0000 (15:03 -0500)
commite5c24fa1c8b5cd51f878a3ccfd014241f87cc958
treed1f4bf4abd6679af73c6422b8216e4ae9a32bfcc
parent559c54f9c27d20966f63c58d6dc0da48feb14daa
rados: Add noreturn attribute to silence uninitialized warning

Marking the `usage_exit` function as noreturn lets the compiler know
that execution won't continue beyond the statement where it's called,
so the path that would lead to the variables being used uninitialized
doesn't count.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/tools/rados/rados.cc