2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-14 00:32:11 +00:00

Fix some 11 warnings.

This commit is contained in:
Rene Rivera
2019-06-04 09:07:39 -05:00
parent 451059949d
commit 52d0cb791c

View File

@@ -220,7 +220,7 @@ void string_unit_test()
}
{
char * const original = " \n\t\v Foo \r\n\v \tBar\n\n\r\r\t\n\v\t \t";
const char * const original = " \n\t\v Foo \r\n\v \tBar\n\n\r\r\t\n\v\t \t";
string copy[ 1 ];
string_copy( copy, original );
assert( !strcmp( copy->value, original ) );
@@ -229,7 +229,7 @@ void string_unit_test()
}
{
char * const foo = "Foo ";
const char * const foo = "Foo ";
string foo_copy[ 1 ];
string_copy( foo_copy, foo );
string_rtrim( foo_copy );
@@ -239,7 +239,7 @@ void string_unit_test()
assert( !strcmp( foo_copy->value, "Foo" ) );
}
{
char * const bar = "Bar\0\0\0";
const char * const bar = "Bar\0\0\0";
string bar_copy[ 1 ];
string_copy( bar_copy, bar );
string_rtrim( bar_copy );