libfstools: handle gzip return value in block_volume_format
authorChristian Marangi <ansuelsmth@gmail.com>
Sun, 17 Jul 2022 09:44:24 +0000 (11:44 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Sun, 17 Jul 2022 09:44:24 +0000 (11:44 +0200)
commitebf7e9028f2facf1a87c56dd261bda82ab9bcc59
tree0a7f0561cd6c7bf573256744a127b7bc4e351cc4
parent93369be040612c906bcbb1631f44a92fa4122d24
libfstools: handle gzip return value in block_volume_format

Fix the following compilation warning:
libfstools/common.c: In function 'block_volume_format':
libfstools/common.c:120:17: error: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Werror=unused-result]
  120 |                 system(str);
      |                 ^~~~~~~~~~~

Correctly handle return value from gzip and print an error on such case.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
libfstools/common.c