]> pd.if.org Git - pdclib/blobdiff - functions/string/strlcpy.c
RegTest defines no functions, resulting in 'unused variable' warnings. Fixed.
[pdclib] / functions / string / strlcpy.c
index 73b9165dad1199fa3734073f897ca3583ed8afc7..7a73f8c20e9efadd90fab9f20e3ab1c67be1c6bc 100644 (file)
@@ -41,7 +41,9 @@ size_t _PDCLIB_strlcpy(
 
 int main( void )
 {
+#ifndef REGTEST
     char destbuf[10];
+#endif
     TESTCASE_NOREG( strlcpy(NULL, "a", 0) == 2 );
     TESTCASE_NOREG( strlcpy(destbuf, "a", 10) == 2 );
     TESTCASE_NOREG( strcmp(destbuf, "a") == 0 );