[R-gregmisc-users] SF.net SVN: r-gregmisc:[1849] trunk/SASxport/src/test_fields.c
Brought to you by:
warnes
From: <wa...@us...> - 2014-07-20 02:15:15
|
Revision: 1849 http://sourceforge.net/p/r-gregmisc/code/1849 Author: warnes Date: 2014-07-20 02:15:13 +0000 (Sun, 20 Jul 2014) Log Message: ----------- Add dummy code to avoid compile warnings about unneeded variables Modified Paths: -------------- trunk/SASxport/src/test_fields.c Modified: trunk/SASxport/src/test_fields.c =================================================================== --- trunk/SASxport/src/test_fields.c 2014-07-20 02:05:33 UTC (rev 1848) +++ trunk/SASxport/src/test_fields.c 2014-07-20 02:15:13 UTC (rev 1849) @@ -4,8 +4,8 @@ * * Author: Gregory R. Warnes <gr...@wa...> * - * Copyright (C) 2007 Gregory R. Warnes - * + * Copyright (C) 2007 Gregory R. Warnes + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or @@ -40,7 +40,7 @@ char buffer[bufsize]; char postbuffer = 'c'; int i; - + /* fill the buffer with 'x' */ for(i=0; i<bufsize; i++) buffer[i] = 'x'; @@ -56,6 +56,8 @@ assert( prebuffer == 'c' ); assert( postbuffer == 'c' ); + postbuffer = prebuffer; //* Avoid compiler warning about unused varibles */ + return 0; } @@ -68,7 +70,7 @@ char *shortstr = "abc"; char *longstr = "123456789012345678901234567890"; int i; - + /* fill the buffer with 'x' */ for(i=0; i<bufsize; i++) buffer[i] = 'x'; @@ -103,6 +105,8 @@ assert( prebuffer == 'c' ); assert( postbuffer == 'c' ); + postbuffer = prebuffer; //* Avoid compiler warning about unused varibles */ + return 0; } @@ -114,7 +118,7 @@ char buffer[bufsize]; char postbuffer = 'c'; int i; - + /* fill the buffer with 'x' */ for(i=0; i<bufsize; i++) buffer[i] = 'x'; @@ -130,6 +134,8 @@ assert( prebuffer == 'c' ); assert( postbuffer == 'c' ); + postbuffer = prebuffer; //* Avoid compiler warning about unused varibles */ + return 0; } @@ -142,7 +148,7 @@ char *shortstr = "abc"; char *longstr = "123456789012345678901234567890123456789012345678901234567890"; int i; - + /* fill the buffer with 'x' */ for(i=0; i<bufsize; i++) buffer[i] = 'x'; @@ -177,6 +183,8 @@ assert( prebuffer == 'c' ); assert( postbuffer == 'c' ); + postbuffer = prebuffer; //* Avoid compiler warning about unused varibles */ + return 0; } @@ -190,7 +198,7 @@ test_blankCopy(SMALL); test_zeroCopy(SMALL); - + /* big buffer */ test_blankFill(BIG); test_zeroFill(BIG); @@ -198,4 +206,4 @@ test_blankCopy(BIG); test_zeroCopy(BIG); } - + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |