diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-12-03 17:02:47 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-12-03 18:04:25 +0100 |
commit | 371443a8045a8f777323472f9cb702f00084b0dc (patch) | |
tree | 02e175302055acecfc81504c2dd84990ff6f12ee /sal/inc | |
parent | 7b57e37c68f2c4cece3b0e0db61f4878277dd1bc (diff) |
avoid unused warning in non-debug mode
Change-Id: I9687f5388a8c01075ee6e359ff9350edff296f4d
Diffstat (limited to 'sal/inc')
-rw-r--r-- | sal/inc/rtl/stringconcat.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/inc/rtl/stringconcat.hxx b/sal/inc/rtl/stringconcat.hxx index 9fb95680faa7..bf0244af6e77 100644 --- a/sal/inc/rtl/stringconcat.hxx +++ b/sal/inc/rtl/stringconcat.hxx @@ -128,7 +128,7 @@ struct ToStringHelper< char[ N ] > template< int N > struct ToStringHelper< const char[ N ] > { - static int length( const char str[ N ] ) { assert( strlen( str ) == N - 1 ); return N - 1; } + static int length( const char str[ N ] ) { (void)str; assert( strlen( str ) == N - 1 ); return N - 1; } static char* addData( char* buffer, const char str[ N ] ) { return addDataHelper( buffer, str, N - 1 ); } static sal_Unicode* addData( sal_Unicode* buffer, const char str[ N ] ) { return addDataLiteral( buffer, str, N - 1 ); } static const bool allowOStringConcat = true; |