]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
auth:rectify a cmake compilation warning 53478/head
authorcuiming_yewu <cuiming_yewu@cmss.chinamobile.com>
Fri, 15 Sep 2023 06:14:39 +0000 (14:14 +0800)
committercuiming_yewu <cuiming_yewu@cmss.chinamobile.com>
Mon, 18 Sep 2023 07:30:06 +0000 (15:30 +0800)
commit800c148d2e2991ff986d2c3e570c15ee7bf0d989
treeebd1a79602b2ab4541114e4c5d33d79a51545268
parent980a0a4f84ac21fb2fda40e61a048b808ec2c974
auth:rectify a cmake compilation warning

rectify src/auth/cephx/CephxProtocol.cc 1 warning
with the variable 'ch' Used before initialized
auth/cephx/CephxProtocol.cc:595:57: warning: '*((void*)& ch +8)' may be used uninitialized in this function [-Wmaybe-uninitialized]
     msg.server_challenge_plus_one = ch.server_challenge + 1;
                                     ~~~~~~~~~~~~~~~~~~~~^~~

Signed-off-by: cuiming <cuiming_yewu@cmss.chinamobile.com>
src/auth/cephx/CephxProtocol.cc