From 509bf85036b3c345f832558a299257effabba108 Mon Sep 17 00:00:00 2001 From: aqua Date: Wed, 2 Nov 2022 23:09:18 +0200 Subject: fix compiler warnings --- i686/paging.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'i686/paging.h') diff --git a/i686/paging.h b/i686/paging.h index cff0506..f9c04a8 100644 --- a/i686/paging.h +++ b/i686/paging.h @@ -16,7 +16,7 @@ struct __attribute__((packed)) DirectoryEntry { unsigned int __available__ : 3; // available to the OS unsigned int address : 20; }; -_Static_assert(sizeof(struct DirectoryEntry) == 4); +_Static_assert(sizeof(struct DirectoryEntry) == 4, "DirectoryEntry size"); // DirectoryEntry4MB // |31| | | | | | | | |22|21|20| | | | | | |13|12|11| | 9| 8| 7| 6| 5| 4| 3| 2| 1| 0| @@ -38,7 +38,7 @@ struct __attribute__((packed)) DirectoryEntry4MB { unsigned rsvd : 1; // 21 unsigned int address_low : 10; }; -_Static_assert(sizeof(struct DirectoryEntry4MB) == 4); +_Static_assert(sizeof(struct DirectoryEntry4MB) == 4, "DirectoryEntry4M size"); // TableEntry // |31| | | | | | | | | | | | | | | | | | | |11| | 9| 8| 7| 6| 5| 4| 3| 2| 1| 0| @@ -56,4 +56,4 @@ struct __attribute__((packed)) TableEntry { unsigned int __available__ : 3; // available to the OS unsigned int address : 20; }; -_Static_assert(sizeof(struct TableEntry) == 4); +_Static_assert(sizeof(struct TableEntry) == 4, "TableEntry size"); -- cgit v1.2.1