Revision: 70248
          http://sourceforge.net/p/brlcad/code/70248
Author:   brlcad
Date:     2017-09-08 03:05:15 +0000 (Fri, 08 Sep 2017)
Log Message:
-----------
dur, the issue was windows specific, and sure enough the offending argv is in a 
windows-specific block and marked non-const.  that's what causes teh 
de-consting warning.

Modified Paths:
--------------
    brlcad/trunk/src/brlman/brlman.c

Modified: brlcad/trunk/src/brlman/brlman.c
===================================================================
--- brlcad/trunk/src/brlman/brlman.c    2017-09-07 21:05:06 UTC (rev 70247)
+++ brlcad/trunk/src/brlman/brlman.c    2017-09-08 03:05:15 UTC (rev 70248)
@@ -196,7 +196,7 @@
     struct bu_opt_desc d[6];
 
 #ifdef HAVE_WINDOWS_H
-    char **argv;
+    const char **argv;
     int argc;
 
     /* Get our args from the c-runtime. Ignore lpszCmdLine. */
@@ -248,7 +248,7 @@
                /* If we have a section identifier and it's not already the last
                 * element in argv, adjust the array */
                if (i < uac - 1) {
-                   char *tmp = (char *)argv[uac-1];
+                   const char *tmp = argv[uac-1];
                    argv[uac-1] = argv[i];
                    argv[i] = tmp;
                }

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


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to