NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-sparc64/46652 (sparc ofwboot.net fails to loadkernelviatftp)



The following reply was made to PR port-sparc64/46652; it has been noted by 
GNATS.

From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
To: spz%serpens.de@localhost
Cc: gnats-bugs%NetBSD.org@localhost, 
port-sparc64-maintainer%NetBSD.org@localhost,
        tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: port-sparc64/46652 (sparc ofwboot.net fails to loadkernelviatftp)
Date: Sat, 14 Jul 2012 09:42:04 +0900

 spz@ wrote:
 
 > Thus wrote Izumi Tsutsui (tsutsui%ceres.dti.ne.jp@localhost):
 > 
 > > > net_tftp_bootp(struct of_dev *op)
 > > 
 > > Do you still prefer (int **) for net_tftp_bootp() to return
 > > netev_sock pointer, or (struct open_file *) is acceptable?
 > 
 > Sorry for the late answer.
 > I prefer (int **) but (struct open_file *) is also acceptable
 
 I notice old gcc 4.1.3 complained about (int **) with WARNS=2:
 ---
 cc1: warnings being treated as errors
 /usr/src/sys/arch/sparc/stand/ofwboot/ofdev.c: In function 'devopen':
 /usr/src/sys/arch/sparc/stand/ofwboot/ofdev.c:539: warning: dereferencing 
type-punned pointer will break strict-aliasing rules
 ---
 (probably that was the reason I changed it)
 
 gcc 4.5.3 doesn't warn it so is it okay to assume it was a false alarm?
 
 ---
 Izumi Tsutsui
 


Home | Main Index | Thread Index | Old Index