mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-22 05:43:02 +00:00
clang: Fix warnings found through clang.
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
#define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) /* 0666 */
|
||||
#endif
|
||||
|
||||
static void usage(void)
|
||||
static void __attribute__((noreturn)) usage(void)
|
||||
{
|
||||
fprintf(stderr, "usage: bios_dumper <filename>\n");
|
||||
exit(1);
|
||||
|
||||
+1
-1
@@ -85,7 +85,7 @@ static int i830_lvds_acpi_lid_state(void)
|
||||
}
|
||||
}
|
||||
state_name = malloc(strlen(ACPI_LID) + strlen(lid_dent->d_name) + 7);
|
||||
memset(state_name, 0, sizeof(state_name));
|
||||
memset(state_name, 0, strlen(ACPI_LID) + strlen(lid_dent->d_name) + 7);
|
||||
strcat(state_name, ACPI_LID);
|
||||
strcat(state_name, lid_dent->d_name);
|
||||
strcat(state_name, "/state");
|
||||
|
||||
Reference in New Issue
Block a user