dbghelp: Fix compiler warnings with flag -Wunused-macros.

This commit is contained in:
André Hentschel 2014-12-09 23:29:52 +01:00 committed by Alexandre Julliard
parent 900e7c5d65
commit b2f967e086
3 changed files with 2 additions and 19 deletions

View File

@ -29,7 +29,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(dbghelp);
#define STEP_FLAG 0x00000100 /* single step flag */
#define V86_FLAG 0x00020000
#define IS_VM86_MODE(ctx) (ctx->EFlags & V86_FLAG)

View File

@ -76,21 +76,6 @@ typedef struct _UNWIND_INFO
*/
} UNWIND_INFO, *PUNWIND_INFO;
#define GetUnwindCodeEntry(info, index) \
((info)->UnwindCode[index])
#define GetLanguageSpecificDataPtr(info) \
((PVOID)&GetUnwindCodeEntry((info),((info)->CountOfCodes + 1) & ~1))
#define GetExceptionHandler(base, info) \
((PEXCEPTION_HANDLER)((base) + *(PULONG)GetLanguageSpecificDataPtr(info)))
#define GetChainedFunctionEntry(base, info) \
((PRUNTIME_FUNCTION)((base) + *(PULONG)GetLanguageSpecificDataPtr(info)))
#define GetExceptionDataPtr(info) \
((PVOID)((PULONG)GetLanguageSpecificData(info) + 1)
static BOOL x86_64_get_addr(HANDLE hThread, const CONTEXT* ctx,
enum cpu_addr ca, ADDRESS64* addr)
{
@ -107,6 +92,8 @@ static BOOL x86_64_get_addr(HANDLE hThread, const CONTEXT* ctx,
}
}
#ifdef __x86_64__
enum st_mode {stm_start, stm_64bit, stm_done};
/* indexes in Reserved array */
@ -118,7 +105,6 @@ enum st_mode {stm_start, stm_64bit, stm_done};
#define curr_count (frame->Reserved[__CurrentCount])
/* #define ??? (frame->Reserved[__]) (unused) */
#ifdef __x86_64__
union handler_data
{
RUNTIME_FUNCTION chain;

View File

@ -58,8 +58,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(dbghelp_msc);
#define MAX_PATHNAME_LEN 1024
struct pdb_stream_name
{
const char* name;