andy@CSVAX.CALTECH.EDU (Andy Fyfe) (02/09/89)
The following program gives a warning I wasn't expecting. (This is
reduced from gnu tar.) I don't know what ansi says about it -- I
only have K&R2 as a reference.
struct one {
char buf[10];
};
struct one *f();
char *
g()
{
return f()->buf;
}
The warning follows (from "gcc -c x.c"):
x.c: In function g:
x.c:10: warning: return of non-volatile * pointer from volatile *