Skip to contentSkip to conversation

lib-ubsan-remove-returns-nonnull-attribute-checks-fix

PATCH New Andrey Ryabinin 1 participant 1 message Jan 22, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib-ubsan-remove-returns-nonnull-attribute-checks-fix

Fixes:
lib/ubsan.c:144:13: warning: ‘location_is_valid’ defined but not used [-Wunused-function] static bool location_is_valid(struct source_location *loc)

---
 lib/ubsan.c | 5 -----
 1 file changed, 5 deletions(-)
lib/ubsan.c +0 -5
index adada1dbbe94..59fee96c29a0 100644
@@ -141,11 +141,6 @@ static void val_to_string(char *str, size_t size, struct type_descriptor *type,
 	}
 }
 
-static bool location_is_valid(struct source_location *loc)
-{
-	return loc->file_name != NULL;
-}
-
 static DEFINE_SPINLOCK(report_lock);
 
 static void ubsan_prologue(struct source_location *location,
Signature · 1 line
2.13.6