summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-09-30 10:03:06 +0200
committerStephan Bergmann <sbergman@redhat.com>2021-09-30 12:20:03 +0200
commit471a0e328cf66f8a288ef0306decf557362c13af (patch)
tree795a93fd18d95ae34c4cf1aa65715d4a625851e8 /sal
parent486e694ba3b029e32eb6647f70dd03298de50f50 (diff)
loplugin:external (clang-cl)
Change-Id: I71be097d5051d39295f9f85d3e2329564388b4c5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122851 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sal')
-rw-r--r--sal/cppunittester/cppunittester.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sal/cppunittester/cppunittester.cxx b/sal/cppunittester/cppunittester.cxx
index 7982982c5305..63567d681cfd 100644
--- a/sal/cppunittester/cppunittester.cxx
+++ b/sal/cppunittester/cppunittester.cxx
@@ -485,7 +485,7 @@ static bool main2()
#if defined(_WIN32) && defined(_DEBUG)
//Prints stack trace based on exception context record
-void printStack( CONTEXT* ctx )
+static void printStack( CONTEXT* ctx )
{
constexpr int MaxNameLen = 256;
bool result;
@@ -570,7 +570,7 @@ void printStack( CONTEXT* ctx )
}
// The exception filter function:
-LONG WINAPI ExpFilter(EXCEPTION_POINTERS* ex)
+static LONG WINAPI ExpFilter(EXCEPTION_POINTERS* ex)
{
// we only want this active on the Jenkins tinderboxes
printf("*** Exception 0x%x occurred ***\n\n",ex->ExceptionRecord->ExceptionCode);
@@ -578,7 +578,7 @@ LONG WINAPI ExpFilter(EXCEPTION_POINTERS* ex)
return EXCEPTION_EXECUTE_HANDLER;
}
-void AbortSignalHandler(int signal)
+static void AbortSignalHandler(int signal)
{
if (signal == SIGABRT) {
std::unique_ptr<sal::BacktraceState> bs = sal::backtrace_get(50);