diff options
author | nectar <nectar@FreeBSD.org> | 2003-04-22 22:19:05 +0000 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 2003-04-22 22:19:05 +0000 |
commit | f8d29b7a2912ec08869f47453b28431292a0534e (patch) | |
tree | e6ed84f3e88006395757c3507937924c3e1ac4aa /sys/geom/geom_subr.c | |
parent | 6fa234aec919187607467d59ce430d63f5efbcdf (diff) | |
download | FreeBSD-src-f8d29b7a2912ec08869f47453b28431292a0534e.zip FreeBSD-src-f8d29b7a2912ec08869f47453b28431292a0534e.tar.gz |
``Strong typing is a crutch for people with weak memories.''
Correct a bug that should have wreaked havoc everywhere, but for
some reason only bit unlucky people who use `-march' optimizations.
The compiler cannot assist one in distinguishing between the two
function calls below.
int nsdispatch(void *, ...);
void *discard;
nsdispatch(&discard, ...); /* correct .. no, really! */
nsdispatch(discard, ...); /* Boom */
Robin provided me with a debugging environment in which I could see
what was going on.
Badness when using CPUTYPE was
Reported by: "Robin P. Blanchard" <Robin.Blanchard@gactr.uga.edu>
Reported by: nork
Sponsored by: DARPA, Network Associates Laboratories
Diffstat (limited to 'sys/geom/geom_subr.c')
0 files changed, 0 insertions, 0 deletions