NetBSD-Bugs archive

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

Re: kern/52681: src/sys/compat/netbsd32/netbsd32_conv.h: 4 * redundant assignment



The following reply was made to PR kern/52681; it has been noted by GNATS.

From: Robert Elz <kre%munnari.OZ.AU@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/52681: src/sys/compat/netbsd32/netbsd32_conv.h: 4 * redundant assignment 
Date: Tue, 31 Oct 2017 20:36:06 +0700

     Date:        Tue, 31 Oct 2017 11:50:00 +0000 (UTC)
     From:        dcb314%hotmail.com@localhost
     Message-ID:  <20171031115000.592527A214%mollari.NetBSD.org@localhost>
 
 
   | > [src/sys/compat/netbsd32/netbsd32_conv.h:286]: (warning) Redundant assignment of 'mhp32->msg_control' to itself.
   | > [src/sys/compat/netbsd32/netbsd32_conv.h:285]: (warning) Redundant assignment of 'mhp32->msg_iovlen' to itself.
   | > [src/sys/compat/netbsd32/netbsd32_conv.h:284]: (warning) Redundant assignment of 'mhp32->msg_namelen' to itself.
   | > [src/sys/compat/netbsd32/netbsd32_conv.h:283]: (warning) Redundant assignment of 'mhp32->msg_name' to itself.
   | 
   | Source code is
   | 
   |     mhp32->msg_name = mhp32->msg_name;
   |     mhp32->msg_namelen = mhp32->msg_namelen;
   |     mhp32->msg_iovlen = mhp32->msg_iovlen;
   |     mhp32->msg_control = mhp32->msg_control;
 
 This one looks like a cut & paste error in the definition of a macro
 that is (as best I can tell) never used.
 
 kre
 


Home | Main Index | Thread Index | Old Index