Revision: 45721
          http://brlcad.svn.sourceforge.net/brlcad/?rev=45721&view=rev
Author:   bhinesley
Date:     2011-07-28 20:22:55 +0000 (Thu, 28 Jul 2011)

Log Message:
-----------
Quiet some compiler warnings about unused variables.

Modified Paths:
--------------
    brlcad/trunk/src/libdm/dm-ogl.c
    brlcad/trunk/src/libtclcad/tclcad_obj.c

Modified: brlcad/trunk/src/libdm/dm-ogl.c
===================================================================
--- brlcad/trunk/src/libdm/dm-ogl.c     2011-07-28 20:21:33 UTC (rev 45720)
+++ brlcad/trunk/src/libdm/dm-ogl.c     2011-07-28 20:22:55 UTC (rev 45721)
@@ -2138,23 +2138,19 @@
     unsigned int red_mask = 0xff000000;
     unsigned int green_mask = 0x00ff0000;
     unsigned int blue_mask = 0x0000ff00;
-    unsigned int alpha_mask = 0x000000ff;
     int h, w;
-    int big_endian;
 #if defined(DM_WGL)
+    unsigned int alpha_mask = 0x000000ff;
+    int big_endian;
     int swap_bytes;
-#endif
 
     if ((bu_byteorder() == BU_BIG_ENDIAN))
        big_endian = 1;
     else
        big_endian = 0;
 
-#if defined(DM_WGL)
     /* WTF */
     swap_bytes = !big_endian;
-#else
-    swap_bytes = big_endian;
 #endif
 
     if (dmp->dm_type == DM_TYPE_WGL || dmp->dm_type == DM_TYPE_OGL) {

Modified: brlcad/trunk/src/libtclcad/tclcad_obj.c
===================================================================
--- brlcad/trunk/src/libtclcad/tclcad_obj.c     2011-07-28 20:21:33 UTC (rev 
45720)
+++ brlcad/trunk/src/libtclcad/tclcad_obj.c     2011-07-28 20:22:55 UTC (rev 
45721)
@@ -6478,21 +6478,19 @@
            unsigned int blue_mask = 0x0000ff00;
 #if defined(DM_WGL)
            unsigned int alpha_mask = 0x000000ff;
-#endif
            int big_endian, swap_bytes;
+#endif
            int bytes_per_line = gdvp->gdv_dmp->dm_width * bytes_per_pixel;
            GLuint *pixels = bu_calloc(width * height, bytes_per_pixel, 
"pixels");
 
+#if defined(DM_WGL)
            if ((bu_byteorder() == BU_BIG_ENDIAN))
                big_endian = 1;
            else
                big_endian = 0;
 
-#if defined(DM_WGL)
            /* WTF */
            swap_bytes = !big_endian;
-#else
-           swap_bytes = big_endian;
 #endif
 
            glReadBuffer(GL_FRONT);


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

------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to