mirror of
https://github.com/ipxe/ipxe
synced 2026-02-11 22:00:06 +03:00
[libc] Make static_assert() available via assert.h
Expose static_assert() via assert.h and migrate link-time assertions to build-time assertions where possible. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -374,7 +374,7 @@ static void aoecmd_ata_cmd ( struct aoe_command *aoecmd,
|
||||
struct aoeata *aoeata = &aoehdr->payload[0].ata;
|
||||
|
||||
/* Sanity check */
|
||||
linker_assert ( AOE_FL_DEV_HEAD == ATA_DEV_SLAVE, __fix_ata_h__ );
|
||||
static_assert ( AOE_FL_DEV_HEAD == ATA_DEV_SLAVE );
|
||||
assert ( len == ( sizeof ( *aoehdr ) + sizeof ( *aoeata ) +
|
||||
command->data_out_len ) );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user