mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-30 10:55:37 -04:00
[partition] static-assert that our shortcut makes sense
This commit is contained in:
parent
15ace5202d
commit
0f38ee624e
1 changed files with 1 additions and 0 deletions
|
@ -444,6 +444,7 @@ isEfiBootable( const Partition* candidate )
|
||||||
// TODO: with KPMCore 4, this comment is wrong: the flags
|
// TODO: with KPMCore 4, this comment is wrong: the flags
|
||||||
// are remapped, and the ESP flag is the same as Boot.
|
// are remapped, and the ESP flag is the same as Boot.
|
||||||
#if defined( WITH_KPMCORE4API )
|
#if defined( WITH_KPMCORE4API )
|
||||||
|
static_assert( KPM_PARTITION_FLAG_ESP == KPM_PARTITION_FLAG( Boot ), "KPMCore API enum changed" );
|
||||||
return flags.testFlag( KPM_PARTITION_FLAG_ESP );
|
return flags.testFlag( KPM_PARTITION_FLAG_ESP );
|
||||||
#else
|
#else
|
||||||
/* If bit 17 is set, old-style Esp flag, it's OK */
|
/* If bit 17 is set, old-style Esp flag, it's OK */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue