aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodolfo García Peñas <kix@kix.es>2012-02-27 23:43:28 +0100
committerRafael J. Wysocki <rjw@sisk.pl>2012-02-27 23:43:28 +0100
commitfbb09c9a61f02f5e184a0da985117f728e0b5c64 (patch)
tree53c2435ea9e3f56d597e28d90ec6581c228fce54
parentf63b384ad07396502d0cf54fa5f264a9dccc50ec (diff)
downloadsuspend-utils-fbb09c9a61f02f5e184a0da985117f728e0b5c64.tar.gz
s2ram / s2both: Warning removed unused label
The label Checksum is only used if CONFIG_COMPRESS is set. If the user compiles the source without this support, the Checksum label is not called, therefore a warning is printed. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
-rw-r--r--load.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/load.c b/load.c
index 9584bbc..6d1c6ed 100644
--- a/load.c
+++ b/load.c
@@ -312,7 +312,9 @@ static ssize_t load_buffer(struct swap_reader *handle)
dst += page_size;
}
+#ifdef CONFIG_COMPRESS
Checksum:
+#endif
if (verify_checksum)
md5_process_block(handle->buffer, size, &handle->ctx);