From c0c8f25316cf0a71930e935ed8a1f756608acd69 Mon Sep 17 00:00:00 2001 From: Anton Lindqvist Date: Mon, 5 Aug 2024 06:11:43 +0000 Subject: Allow our linker warnings regarding misuse of libc functions to be elevated to errors using the -Wl,--fatal-warnings option. ok robert@ --- gnu/llvm/lld/ELF/Relocations.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu') diff --git a/gnu/llvm/lld/ELF/Relocations.cpp b/gnu/llvm/lld/ELF/Relocations.cpp index 9bdbad2d48a..255fb28eb81 100644 --- a/gnu/llvm/lld/ELF/Relocations.cpp +++ b/gnu/llvm/lld/ELF/Relocations.cpp @@ -798,8 +798,8 @@ static void reportGNUWarning(Symbol &sym, InputSectionBase &sec, // report first occurance only sym.gwarn = false; if (!gnuWarning.empty()) - message(sec.getSrcMsg(sym, offset) + "(" + sec.getObjMsg(offset) + - "): warning: " + gnuWarning); + warn(sec.getSrcMsg(sym, offset) + "(" + sec.getObjMsg(offset) + + "): warning: " + gnuWarning); } } -- cgit v1.2.3