summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2015-02-26 21:08:21 +0000
committerReid Kleckner <reid@kleckner.net>2015-02-26 21:08:21 +0000
commit542a45435f43fd92091742d8089be7f9e070bcd8 (patch)
treebc1258baaf4ae812166b64c4ffc01bb3e039752c /llvm/lib/Support
parent1aecd5b8d95bd4d2cd5d50580126e1768a3c5848 (diff)
downloadbcm5719-llvm-542a45435f43fd92091742d8089be7f9e070bcd8.tar.gz
bcm5719-llvm-542a45435f43fd92091742d8089be7f9e070bcd8.zip
Silence some Win64 clang-cl warnings about unused stuff due to ifdefs
llvm-svn: 230685
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/Windows/Signals.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Support/Windows/Signals.inc b/llvm/lib/Support/Windows/Signals.inc
index fa16aa58c7f..aa1aa721945 100644
--- a/llvm/lib/Support/Windows/Signals.inc
+++ b/llvm/lib/Support/Windows/Signals.inc
@@ -184,7 +184,8 @@ namespace llvm {
/// AvoidMessageBoxHook - Emulates hitting "retry" from an "abort, retry,
/// ignore" CRT debug report dialog. "retry" raises an exception which
/// ultimately triggers our stack dumper.
-static int AvoidMessageBoxHook(int ReportType, char *Message, int *Return) {
+static LLVM_ATTRIBUTE_UNUSED int
+AvoidMessageBoxHook(int ReportType, char *Message, int *Return) {
// Set *Return to the retry code for the return value of _CrtDbgReport:
// http://msdn.microsoft.com/en-us/library/8hyw4sy7(v=vs.71).aspx
// This may also trigger just-in-time debugging via DebugBreak().
OpenPOWER on IntegriCloud