scudo/standalone: prepare for enabling format string checking
authorDmitry Vyukov <dvyukov@google.com>
Fri, 13 Aug 2021 05:29:41 +0000 (07:29 +0200)
committerDmitry Vyukov <dvyukov@google.com>
Fri, 13 Aug 2021 11:45:30 +0000 (13:45 +0200)
commit1fbe5fb81c80ebd481430cbe0b457d3726329b29
tree06fe6b4c0a4b1a0a31a9d950fb6f7e0ebd3fc916
parent73710858b041ee129a38f6ccc740e2691d2a93c0
scudo/standalone: prepare for enabling format string checking

Move __attribute__((format)) to the function declarations in the header file.
It's almost pointless in the source file.
But disable the warning  with -Wno-format for now
since there is a number of existing warnings.

Depends on D107984.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D108014
compiler-rt/lib/scudo/standalone/CMakeLists.txt
compiler-rt/lib/scudo/standalone/string_utils.cpp
compiler-rt/lib/scudo/standalone/string_utils.h
compiler-rt/lib/scudo/standalone/tests/CMakeLists.txt