diff options
author | Anton Lindqvist <anton@cvs.openbsd.org> | 2024-08-05 06:11:43 +0000 |
---|---|---|
committer | Anton Lindqvist <anton@cvs.openbsd.org> | 2024-08-05 06:11:43 +0000 |
commit | c0c8f25316cf0a71930e935ed8a1f756608acd69 (patch) | |
tree | 20fd91bd99465d0008ce81395e85e81a8e58b081 /gnu/llvm | |
parent | 8f0ffc6e930ec303ef0c9f5a1ff0b3bd696a5cf1 (diff) |
Allow our linker warnings regarding misuse of libc functions to be
elevated to errors using the -Wl,--fatal-warnings option.
ok robert@
Diffstat (limited to 'gnu/llvm')
-rw-r--r-- | gnu/llvm/lld/ELF/Relocations.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); } } |