diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-03-27 11:31:12 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-03-27 11:31:12 +0100 |
commit | b8e68951d56cfd01cf63c3ee04b49a862b685bc5 (patch) | |
tree | 78ee6940b0737f712e31cd7c82e98e7362b1f7bc /sal | |
parent | a429142bfb282f7bd8166d4e91052cb5009608bd (diff) |
-Werror=unused-macros (Android)
Change-Id: Ibd06e49e78a6d6a69521a65b53b056e85b64765b
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/unx/signal.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sal/osl/unx/signal.c b/sal/osl/unx/signal.c index e80a4eb85ffa..24c170a67577 100644 --- a/sal/osl/unx/signal.c +++ b/sal/osl/unx/signal.c @@ -21,8 +21,6 @@ /* system headers */ #include "system.h" -#define MAX_STACK_FRAMES 256 - #if defined( MACOSX ) #if defined( INTEL ) @@ -55,6 +53,10 @@ #endif /* defined SOLARIS */ +#if defined INCLUDE_BACKTRACE +#define MAX_STACK_FRAMES 256 +#endif + #include <osl/diagnose.h> #include <osl/mutex.h> #include <osl/signal.h> @@ -409,8 +411,6 @@ static int fputs_xml( const char *string, FILE *stream ) /* Create intermediate files and run crash reporter */ -#define REPORTENV_PARAM "-crashreportenv:" - #if defined SAL_ENABLE_CRASH_REPORT && defined INCLUDE_BACKTRACE && \ defined LINUX @@ -496,6 +496,9 @@ dynamic_section_offset(const char *name) static int ReportCrash( int Signal ) { #ifdef SAL_ENABLE_CRASH_REPORT + +#define REPORTENV_PARAM "-crashreportenv:" + static sal_Bool bCrashReporterExecuted = sal_False; sal_Bool bAutoCrashReport = sal_False; |