Win: Fix warnings for parameter of getLayerOptionEnum()
authorIan Elliott <ian@LunarG.com>
Fri, 6 Mar 2015 20:50:05 +0000 (13:50 -0700)
committerIan Elliott <ian@LunarG.com>
Fri, 6 Mar 2015 20:58:14 +0000 (13:58 -0700)
layers/draw_state.c
layers/mem_tracker.c
xgl-layer-generate.py

index 25358a6..c374d5b 100644 (file)
@@ -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)
     {
index 43d9379..758dc39 100644 (file)
@@ -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)
     {
index 86e19d8..b346314 100755 (executable)
@@ -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('    {')