Bug 7241
| Summary: | pedantic type clash in <bits/string2.h> | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Jonathan Kamens <h1k6zn2m> |
| Component: | glibc | Assignee: | Cristian Gafton <gafton> |
| Status: | CLOSED RAWHIDE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.1 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2000-01-05 03:07:12 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Fixed in the rawhide version of glibc. |
When I compile an application which includes <bits/string2.h> with "-pedantic", I see this warning: /usr/include/bits/string2.h:611: warning: pointer targets in return differ in signedness This patch to string2.h fixes the problem: --- /usr/include/bits/string2.h~ Mon Sep 20 05:12:49 1999 +++ /usr/include/bits/string2.h Mon Nov 22 19:28:52 1999 @@ -608,7 +608,7 @@ __u = __extension__ ((void *) __u + 3); break; } - return &__u->__uc; + return (char *) &__u->__uc; } # else # define __stpcpy_args(src) \