Path: utzoo!utgpu!attcan!uunet!auspex!guy From: guy@auspex.UUCP (Guy Harris) Newsgroups: comp.lang.c Subject: Re: lint warning messages with malloc() Message-ID: <393@auspex.UUCP> Date: 3 Nov 88 17:29:17 GMT References: <142@cjsa.WA.COM> Reply-To: guy@auspex.UUCP (Guy Harris) Organization: Auspex Systems, Santa Clara Lines: 13 >I assume that lint is complaining not about the pointer returned from >malloc(), but instead, about the alignment of the *z pointer which is >a member of the structure. Incorrect assumption. "lint" doesn't know "malloc()" from a hole in the ground; it has no idea that it returns maximally-aligned pointers. This might be considered a deficiency in "lint". There is nothing wrong with the alignment of the "*z pointer". Do not adjust your set. As one version of the "lint" manual page said, under the BUGS section, "There are some things you just *can't* get 'lint' to shut up about."