]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
src/common: fix missing return 64249/head
authorzhuwei <zhuwei@cmss.chinamobile.com>
Mon, 30 Jun 2025 03:38:38 +0000 (11:38 +0800)
committerzhuwei <zhuwei@cmss.chinamobile.com>
Mon, 30 Jun 2025 03:38:38 +0000 (11:38 +0800)
Found an exit path from function with non-void return type that has missing return statement

Signed-off-by: Zhu Wei <zhuwei_yewu@cmss.chinamobile.com>
src/common/blkdev.cc

index 315e4f5e964d4248c5de893da214579d5233423a..d65e5d5420ef528e83a9bd17c9915fbcd50eecc5 100644 (file)
@@ -807,6 +807,7 @@ int BlkDev::partition(char *partition, size_t max) const
 
 int BlkDev::wholedisk(char *device, size_t max) const
 {
+  return -EOPNOTSUPP;
 }