Revision: 76145
          http://sourceforge.net/p/brlcad/code/76145
Author:   starseeker
Date:     2020-06-15 19:50:52 +0000 (Mon, 15 Jun 2020)
Log Message:
-----------
Protect otherwise unused vars behind ifdef

Modified Paths:
--------------
    brlcad/branches/dm-fb-merge/src/libdm/dm_util.c

Modified: brlcad/branches/dm-fb-merge/src/libdm/dm_util.c
===================================================================
--- brlcad/branches/dm-fb-merge/src/libdm/dm_util.c     2020-06-15 18:01:54 UTC 
(rev 76144)
+++ brlcad/branches/dm-fb-merge/src/libdm/dm_util.c     2020-06-15 19:50:52 UTC 
(rev 76145)
@@ -34,8 +34,6 @@
 int
 drawLine3D(struct dm *dmp, point_t pt1, point_t pt2, const char *log_bu, float 
*wireColor)
 {
-    static float black[4] = {0.0, 0.0, 0.0, 0.0};
-
     if (!dmp) {
        return BRLCAD_ERROR;
     }
@@ -49,6 +47,7 @@
     }
 
 #ifdef HAVE_GL_GL_H
+    static float black[4] = {0.0, 0.0, 0.0, 0.0};
     GLdouble pt[3];
     if (dmp->i->dm_debugLevel) {
        GLfloat pmat[16];
@@ -91,8 +90,6 @@
 int
 drawLines3D(struct dm *dmp, int npoints, point_t *points, int lflag, const 
char *log_bu, float *wireColor)
 {
-    register int i;
-    static float black[4] = {0.0, 0.0, 0.0, 0.0};
     if (!dmp) {
        return BRLCAD_ERROR;
     }
@@ -109,6 +106,8 @@
     }
 
 #ifdef HAVE_GL_GL_H
+    register int i;
+    static float black[4] = {0.0, 0.0, 0.0, 0.0};
     if (dmp->i->dm_debugLevel) {
        GLfloat pmat[16];
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to