From 1c3faf8d7524ca1b4901fde0c2ebd88555fc7ec3 Mon Sep 17 00:00:00 2001 From: Ian Elliott Date: Fri, 6 Mar 2015 13:50:05 -0700 Subject: [PATCH] Win: Fix warnings for parameter of getLayerOptionEnum() --- layers/draw_state.c | 4 ++-- layers/mem_tracker.c | 4 ++-- xgl-layer-generate.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/layers/draw_state.c b/layers/draw_state.c index 25358a6..c374d5b 100644 --- a/layers/draw_state.c +++ b/layers/draw_state.c @@ -1668,8 +1668,8 @@ static void initDrawState(void) { const char *strOpt; // initialize DrawState options - getLayerOptionEnum("DrawStateReportLevel", &g_reportingLevel); - g_actionIsDefault = getLayerOptionEnum("DrawStateDebugAction", &g_debugAction); + getLayerOptionEnum("DrawStateReportLevel", (uint32_t *) &g_reportingLevel); + g_actionIsDefault = getLayerOptionEnum("DrawStateDebugAction", (uint32_t *) &g_debugAction); if (g_debugAction & XGL_DBG_LAYER_ACTION_LOG_MSG) { diff --git a/layers/mem_tracker.c b/layers/mem_tracker.c index 43d9379..758dc39 100644 --- a/layers/mem_tracker.c +++ b/layers/mem_tracker.c @@ -769,8 +769,8 @@ static void initMemTracker(void) { const char *strOpt; // initialize MemTracker options - getLayerOptionEnum("MemTrackerReportLevel", &g_reportingLevel); - g_actionIsDefault = getLayerOptionEnum("MemTrackerDebugAction", &g_debugAction); + getLayerOptionEnum("MemTrackerReportLevel", (uint32_t *) &g_reportingLevel); + g_actionIsDefault = getLayerOptionEnum("MemTrackerDebugAction", (uint32_t *) &g_debugAction); if (g_debugAction & XGL_DBG_LAYER_ACTION_LOG_MSG) { diff --git a/xgl-layer-generate.py b/xgl-layer-generate.py index 86e19d8..b346314 100755 --- a/xgl-layer-generate.py +++ b/xgl-layer-generate.py @@ -910,8 +910,8 @@ class Subcommand(object): if init_opts: func_body.append(' const char *strOpt;') func_body.append(' // initialize %s options' % name) - func_body.append(' getLayerOptionEnum("%sReportLevel", &g_reportingLevel);' % name) - func_body.append(' g_actionIsDefault = getLayerOptionEnum("%sDebugAction", &g_debugAction);' % name) + func_body.append(' getLayerOptionEnum("%sReportLevel", (uint32_t *) &g_reportingLevel);' % name) + func_body.append(' g_actionIsDefault = getLayerOptionEnum("%sDebugAction", (uint32_t *) &g_debugAction);' % name) func_body.append('') func_body.append(' if (g_debugAction & XGL_DBG_LAYER_ACTION_LOG_MSG)') func_body.append(' {') -- 2.7.4