Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151005012
D37397.id113325.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D37397.id113325.diff
View Options
diff --git a/usr.sbin/bhyve/basl.h b/usr.sbin/bhyve/basl.h
--- a/usr.sbin/bhyve/basl.h
+++ b/usr.sbin/bhyve/basl.h
@@ -6,7 +6,10 @@
#pragma once
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wunused-parameter"
#include <contrib/dev/acpica/include/acpi.h>
+#pragma clang diagnostic pop
#define ACPI_GAS_ACCESS_WIDTH_LEGACY 0
#define ACPI_GAS_ACCESS_WIDTH_UNDEFINED 0
@@ -20,7 +23,7 @@
#define BASL_TABLE_ALIGNMENT 0x10
#define BASL_TABLE_ALIGNMENT_FACS 0x40
-#define BASL_TABLE_CHECKSUM_LEN_FULL_TABLE (-1)
+#define BASL_TABLE_CHECKSUM_LEN_FULL_TABLE (-1U)
#define BASL_EXEC(x) \
do { \
diff --git a/usr.sbin/bhyve/basl.c b/usr.sbin/bhyve/basl.c
--- a/usr.sbin/bhyve/basl.c
+++ b/usr.sbin/bhyve/basl.c
@@ -49,8 +49,7 @@
uint32_t len;
uint32_t off;
uint32_t alignment;
- STAILQ_HEAD(basl_table_checksum_list,
- basl_table_checksum) checksums;
+ STAILQ_HEAD(basl_table_checksum_list, basl_table_checksum) checksums;
STAILQ_HEAD(basl_table_length_list, basl_table_length) lengths;
STAILQ_HEAD(basl_table_pointer_list, basl_table_pointer) pointers;
};
@@ -110,7 +109,7 @@
return (0);
}
-static int
+static int __unused
basl_dump(const bool mem)
{
struct basl_table *table;
@@ -279,7 +278,7 @@
assert(length->off < table->len);
assert(length->off + length->size <= table->len);
- basl_le_enc(table->data + length->off, table->len,
+ basl_le_enc((uint8_t *)table->data + length->off, table->len,
length->size);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 6, 10:20 AM (1 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30958963
Default Alt Text
D37397.id113325.diff (1 KB)
Attached To
Mode
D37397: bhyve: Let BASL compile with raised warnings
Attached
Detach File
Event Timeline
Log In to Comment