On 3/7/11 10:35 AM, Richard W.M. Jones wrote:
> Below is how the failure line expands(!)
Thanks, I needed a laugh this morning.
If I do this as a minimal testcase:
---
#include <string.h>
#include <stdio.h>
int
do_rm_rf (const char *path)
{
int r;
char *buf, *err;
if (!strcmp(path, "/")) {
printf ("cannot remove root directory");
return -1;
}
return 0;
}
---
And build it with -c -save-temps, I don't get anything remotely like
what you're getting in the .i file; the strcmp call is emitted
unmolested. So I'm choosing to blame this on some other header you're
including, and the easiest way to find it is to do:
#define STREQ broken
#define strcmp broken
right before the call and let cpp tell you where the original is.
% rpm -q glibc gcc
glibc-2.13.90-4.x86_64
gcc-4.6.0-0.12.fc15.x86_64
- ajax
--
devel mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/devel