suppress warn_unused_result
Some checks failed
Nix Flake actions / nix-matrix (push) Has been cancelled
build / bcachefs-tools-deb (ubuntu-22.04) (push) Has been cancelled
build / bcachefs-tools-deb (ubuntu-24.04) (push) Has been cancelled
build / bcachefs-tools-rpm (push) Has been cancelled
build / bcachefs-tools-msrv (push) Has been cancelled
Nix Flake actions / ${{ matrix.name }} (${{ matrix.system }}) (push) Has been cancelled

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2025-05-15 17:58:36 -04:00
parent 689239a4bb
commit 3139850c75

View File

@ -59,7 +59,7 @@ static inline struct format_opts format_opts_default()
* Ensure bcachefs module is loaded so we know the supported on disk
* format version:
*/
system("modprobe bcachefs > /dev/null 2>&1");
(void)!system("modprobe bcachefs > /dev/null 2>&1");
return (struct format_opts) {
.version = bcachefs_kernel_version() ?: