Path: utzoo!attcan!uunet!husc6!necntc!ima!haddock!karl From: karl@haddock.ISC.COM (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: Help me cast this! Message-ID: <3989@haddock.ISC.COM> Date: 13 May 88 18:48:30 GMT References: <294@fedeva.UUCP> <7822@brl-smoke.ARPA> <3802@diku.dk> <1988May6.165221.536@utzoo.uucp> <3817@diku.dk> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Boston Lines: 14 In article <3817@diku.dk> thorinn@diku.dk (Lars Henrik Mathiesen) writes: >The next problem is with compiler writers who insist on warning about >[possible alignment problems] on compilation. They will have to put in >support for /*MAXALIGN*/... Or use a #pragma. Or their users will have to >live with the warnings (most probable?). If they're going to add the warning message, they'd better make damn sure that "int *ip = (int *)malloc(sizeof(int));", which is perfectly valid, not produce the warning. "Live with the warnings" is unacceptable. If it's true that #pragma is not allowed to change the semantics of a program, then this may be an excellent example of what it *is* good for. Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint