aboutsummaryrefslogtreecommitdiffstats
path: root/crc32c.c
diff options
context:
space:
mode:
authorMiao Xie <miaox@cn.fujitsu.com>2012-08-10 10:46:16 +0800
committerroot <root@localhost.localdomain>2012-10-04 16:26:31 -0400
commit3b4e2d61961f7308885cce98bfecdf07d6c0ed01 (patch)
tree6bb4bef5898f4591d365dbd6fce86a95f692ce16 /crc32c.c
parentd88f33152f3d69240b6c690188b5d832a1663c07 (diff)
downloadbtrfs-progs-3b4e2d61961f7308885cce98bfecdf07d6c0ed01.tar.gz
btrfs-progs-3b4e2d61961f7308885cce98bfecdf07d6c0ed01.tar.xz
btrfs-progs-3b4e2d61961f7308885cce98bfecdf07d6c0ed01.zip
Btrfs-progs: fix several complie warning
This patch fixed the following warning: cmds-send.c:464:6: warning: ‘ret' may be used uninitialized in this function [-Wuninitialized] crc32c.c:121:1: warning: control reaches end of non-void function [-Wreturn-type] send-utils.c:69:11: warning: ‘comp' may be used uninitialized in this function [-Wuninitialized] send-utils.c:126:6: warning: ‘comp' may be used uninitialized in this function [-Wuninitialized] send-utils.c:99:22: warning: ‘entry' may be used uninitialized in this function [-Wuninitialized] btrfs.c:261:2: warning: implicit declaration of function ‘crc32c_optimization_init' [-Wimplicit-function-declaration] btrfs.c:105:2: warning: ‘cmd' may be used uninitialized in this function [-Wuninitialized] restore.c:435:12: warning: ignoring return value of ‘ftruncate', declared with attribute warn_unused_result [-Wunused-result] Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Diffstat (limited to 'crc32c.c')
-rw-r--r--crc32c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crc32c.c b/crc32c.c
index a761a1d..c285d6e 100644
--- a/crc32c.c
+++ b/crc32c.c
@@ -113,7 +113,7 @@ void crc32c_intel_probe(void)
}
}
-int crc32c_optimization_init(void)
+void crc32c_optimization_init(void)
{
crc32c_intel_probe();
if (crc32c_intel_available)
@@ -121,7 +121,7 @@ int crc32c_optimization_init(void)
}
#else
-int crc32c_optimization_init(void)
+void crc32c_optimization_init(void)
{
}