pcp
[Top] [All Lists]

[Bug 839] PCP GUI failed to build w/ GCC 4.4.0

To: pcp@xxxxxxxxxxx
Subject: [Bug 839] PCP GUI failed to build w/ GCC 4.4.0
From: bugzilla-daemon@xxxxxxxxxxx
Date: Sun, 31 May 2009 20:25:15 -0500
Auto-submitted: auto-generated
In-reply-to: <bug-839-835@xxxxxxxxxxxxxxxx/bugzilla/>
References: <bug-839-835@xxxxxxxxxxxxxxxx/bugzilla/>
http://oss.sgi.com/bugzilla/show_bug.cgi?id=839





--- Comment #1 from Nathan Scott <nathans@xxxxxxxxxx>  2009-05-31 20:25:14 CST 
---
Thanks for the patch.  It seems a little odd though:

     p = (char *)(const char *)cp->name(m).toAscii();
-    if ((q = strstr(p, "[")) != NULL) {
+    if ((q = strstr((char *)p, "[")) != NULL) {

Does making "p" of (char *) type initially, instead of (const char *) also fix
the problem?
That might be a bit more readable.

cheers.

-- 
Configure bugmail: http://oss.sgi.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

<Prev in Thread] Current Thread [Next in Thread>