From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sasha Khapyorsky Subject: Re: [PATCH] osmtest - code cleanup Date: Mon, 12 Oct 2009 23:40:54 +0200 Message-ID: <20091012214054.GH13830@me> References: <4BFF1A3398A74B2AABB948EF2843BF68@amr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <4BFF1A3398A74B2AABB948EF2843BF68@amr.corp.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: ofw-bounces@lists.openfabrics.org Errors-To: ofw-bounces@lists.openfabrics.org To: "Stan C. Smith" Cc: ofw@lists.openfabrics.org, 'linux-rdma' List-Id: linux-rdma@vger.kernel.org On 11:57 Mon 12 Oct , Stan C. Smith wrote: > > Remove unused ifdef __WIN__ & redundant include. > > Signed-off-by: stan smith Applied. Thanks. The question is below. > > diff --git a/opensm/osmtest/osmtest.c b/opensm/osmtest/osmtest.c > index c6ec955..82a814e 100644 > --- a/opensm/osmtest/osmtest.c > +++ b/opensm/osmtest/osmtest.c > @@ -43,19 +43,13 @@ > * > */ > > -#ifdef __WIN__ > -#pragma warning(disable : 4996) > -#endif > - > #include > #include > #include > -#ifdef __WIN__ > -#include > -#else > +#ifndef __WIN__ > #include > -#include > #endif I suppose that windows should have string.h, right? Assuming so could we remove '#ifndef __WIN__' completely here? Sasha > +#include > #include > #include "osmtest.h" > >