mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-03 20:22:59 -05:00 
			
		
		
		
	Prevent triggering Clang 12 -Wstring-concatenation warning
Wrap multi-line string literals in parentheses to prevent a Clang 12 -Wstring-concatenation warning (activated by -Wall), which caused the build to fail. Fixes https://github.com/ARMmbed/mbedtls/issues/3586 Signed-off-by: Guido Vranken <guidovranken@gmail.com>
This commit is contained in:
		
							parent
							
								
									1a6af8489e
								
							
						
					
					
						commit
						027fe00d2e
					
				@ -287,8 +287,8 @@ static const unsigned char md2_test_str[7][81] =
 | 
			
		||||
    { "message digest" },
 | 
			
		||||
    { "abcdefghijklmnopqrstuvwxyz" },
 | 
			
		||||
    { "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" },
 | 
			
		||||
    { "12345678901234567890123456789012345678901234567890123456789012"
 | 
			
		||||
      "345678901234567890" }
 | 
			
		||||
    { ("12345678901234567890123456789012345678901234567890123456789012"
 | 
			
		||||
      "345678901234567890") }
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
static const size_t md2_test_strlen[7] =
 | 
			
		||||
 | 
			
		||||
@ -408,8 +408,8 @@ static const unsigned char md4_test_str[7][81] =
 | 
			
		||||
    { "message digest" },
 | 
			
		||||
    { "abcdefghijklmnopqrstuvwxyz" },
 | 
			
		||||
    { "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" },
 | 
			
		||||
    { "12345678901234567890123456789012345678901234567890123456789012"
 | 
			
		||||
      "345678901234567890" }
 | 
			
		||||
    { ("12345678901234567890123456789012345678901234567890123456789012"
 | 
			
		||||
      "345678901234567890") }
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
static const size_t md4_test_strlen[7] =
 | 
			
		||||
 | 
			
		||||
@ -422,8 +422,8 @@ static const unsigned char md5_test_buf[7][81] =
 | 
			
		||||
    { "message digest" },
 | 
			
		||||
    { "abcdefghijklmnopqrstuvwxyz" },
 | 
			
		||||
    { "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" },
 | 
			
		||||
    { "12345678901234567890123456789012345678901234567890123456789012"
 | 
			
		||||
      "345678901234567890" }
 | 
			
		||||
    { ("12345678901234567890123456789012345678901234567890123456789012"
 | 
			
		||||
      "345678901234567890") }
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
static const size_t md5_test_buflen[7] =
 | 
			
		||||
 | 
			
		||||
@ -478,8 +478,8 @@ static const unsigned char ripemd160_test_str[TESTS][81] =
 | 
			
		||||
    { "abcdefghijklmnopqrstuvwxyz" },
 | 
			
		||||
    { "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq" },
 | 
			
		||||
    { "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" },
 | 
			
		||||
    { "12345678901234567890123456789012345678901234567890123456789012"
 | 
			
		||||
      "345678901234567890" },
 | 
			
		||||
    { ("12345678901234567890123456789012345678901234567890123456789012"
 | 
			
		||||
      "345678901234567890") },
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
static const size_t ripemd160_test_strlen[TESTS] =
 | 
			
		||||
 | 
			
		||||
@ -516,8 +516,8 @@ void mbedtls_sha512( const unsigned char *input,
 | 
			
		||||
static const unsigned char sha512_test_buf[3][113] =
 | 
			
		||||
{
 | 
			
		||||
    { "abc" },
 | 
			
		||||
    { "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
 | 
			
		||||
      "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu" },
 | 
			
		||||
    { ("abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
 | 
			
		||||
      "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu") },
 | 
			
		||||
    { "" }
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user