[Piglit] [Bug 103248] piglit-util.h:308:8: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *'

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Oct 12 22:24:25 UTC 2017


--- Comment #2 from Vinson Lee <vlee at freedesktop.org> ---
(In reply to Brian Paul from comment #1)
> If you change the declaration to this, does that help?
> const char *t = strchr(s, c);

No, I get this error with that change.

piglit-util.h:310:9: error: cannot initialize return object of type 'char *'
with an rvalue of type 'const char *'
        return (t == NULL) ? ((char *) s + strlen(s)) : t;

You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/piglit/attachments/20171012/1e364cf6/attachment.html>

More information about the Piglit mailing list