[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12016] trunk/blender/intern/moto: more gcc 4.1.x warning cleanup:

Stephen Swaney sswaney at centurytel.net
Wed Sep 12 03:56:50 CEST 2007


Revision: 12016
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=12016
Author:   stiv
Date:     2007-09-12 03:56:50 +0200 (Wed, 12 Sep 2007)

Log Message:
-----------
more gcc 4.1.x warning cleanup:
applied MT_QueryAssert_patch.diff part of
patch [#6994] Fixing warnings: conversion from string constant to char *

Submitted by Renato Perini (mjordan).
Thanks, Renato!

Modified Paths:
--------------
    trunk/blender/intern/moto/include/MT_assert.h
    trunk/blender/intern/moto/intern/MT_Assert.cpp

Modified: trunk/blender/intern/moto/include/MT_assert.h
===================================================================
--- trunk/blender/intern/moto/include/MT_assert.h	2007-09-12 01:14:31 UTC (rev 12015)
+++ trunk/blender/intern/moto/include/MT_assert.h	2007-09-12 01:56:50 UTC (rev 12016)
@@ -48,7 +48,7 @@
 // file, line, predicate form the message to ask, *do_assert should be set
 // to 0 to ignore.
 // returns 1 to break, false to ignore
-MT_CDECL int MT_QueryAssert(char *file, int line, char *predicate, int *do_assert);
+MT_CDECL int MT_QueryAssert(const char *file, int line, const char *predicate, int *do_assert);
 
 
 #ifdef	NDEBUG

Modified: trunk/blender/intern/moto/intern/MT_Assert.cpp
===================================================================
--- trunk/blender/intern/moto/intern/MT_Assert.cpp	2007-09-12 01:14:31 UTC (rev 12015)
+++ trunk/blender/intern/moto/intern/MT_Assert.cpp	2007-09-12 01:56:50 UTC (rev 12016)
@@ -45,7 +45,7 @@
 
 // Query the user if they want to break/abort the program, ignore the assert, or ignore all future
 // occurance of the assert.
-int MT_QueryAssert(char *file, int line, char *predicate, int *do_assert)
+int MT_QueryAssert(const char *file, int line, const char *predicate, int *do_assert)
 {
 #ifdef _WIN32
 	if (*do_assert)





More information about the Bf-blender-cvs mailing list