mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 13:58:34 +00:00
lib/c: fix a compile time error
lib/c/criu.c:343:30: error: implicit conversion from enumeration type 'enum criu_pre_dump_mode' to different enumeration type 'CriuPreDumpMode' (aka 'enum _CriuPreDumpMode') [-Werror,-Wenum-conversion opts->rpc->pre_dump_mode = mode; ~ ^~~~ Signed-off-by: Andrei Vagin <avagin@gmail.com>
This commit is contained in:
parent
d305576996
commit
7c97cc7eb2
@ -340,7 +340,7 @@ int criu_local_set_pre_dump_mode(criu_opts *opts, enum criu_pre_dump_mode mode)
|
||||
{
|
||||
opts->rpc->has_pre_dump_mode = true;
|
||||
if (mode == CRIU_PRE_DUMP_SPLICE || mode == CRIU_PRE_DUMP_READ) {
|
||||
opts->rpc->pre_dump_mode = mode;
|
||||
opts->rpc->pre_dump_mode = (CriuPreDumpMode)mode;
|
||||
return 0;
|
||||
}
|
||||
return -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user