From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 18026 invoked from network); 2 Nov 1999 16:01:16 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 2 Nov 1999 16:01:16 -0000 Received: from sweeper.energie-delfland.nl (mail.energie-delfland.nl [195.193.204.43]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id LAA28284 for ; Tue, 2 Nov 1999 11:01:14 -0500 Received: from msmail.energie-delfland.nl (unverified) by sweeper.energie-delfland.nl (Content Technologies SMTPRS 2.0.15) with SMTP id for ; Tue, 02 Nov 1999 16:58:19 +0100 Received: by msmail.energie-delfland.nl with SMTP (Microsoft Exchange Server Internet Mail Connector Version 4.0.996.62) id <01BF2553.AA1DB490@msmail.energie-delfland.nl>; Tue, 2 Nov 1999 16:59:45 +0100 Message-Id: From: "Wessels, Hans" To: "'axp-list@redhat.com'" Subject: RE: Serious warnings from RH 6.1 SRPMs on alpha Date: Tue, 2 Nov 1999 16:59:43 +0100 X-Mailer: Microsoft Exchange Server Internet Mail Connector Version 4.0.996.62 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit >Van: Christian Iseli[SMTP:chris@ludwig-alpha.unil.ch] >Onderwerp: Re: Serious warnings from RH 6.1 SRPMs on alpha > >lucier@math.purdue.edu said: >> In my (limited) experience, this type of warning almost always >> indicates that someone is (a) trying to store a pointer in an int >> variable without (b) knowing that an int is 32 bits and a pointer is >> 64 bits on alpha linux. > >IIRC, this is true to some extent, but not always. For example, one could >imagine a struct like so: >struct _foo { > void *stuff; >}; >which you would use to pass various data around. If you do things like: > struct _foo f; > int bar; > f.stuff = bar; /* Get a warning */ > ... > bar = f.stuff; /* Get a warning */ >you should be ok. I'm not saying this is good programming practice BTW ;-) An other way is: void foo(char *p) { int alignment; alignment = ((int) p) &0x0F; /* Get a warning */ ... } Anyone how to do this without getting a warning? Bye, Hans ---------------------------------------------------------------------- /| /\/\/\ |\ ir. Hans Wessels / | / /\/\ \ | \ H.Wessels@Energie-Delfland.nl / | / / /\ \ \ | \ tel.: 015 251 4397 / |/ / / \ \ \| \ \ |\ \ \ / / /| / prive: \ | \ \ \/ / / | / mr_ni@mbh.org \ | \ \/\/ / | / Fidelus Bittus et Fuckus Clockcyclus! \| \/\/\/ |/ ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com **********************************************************************