mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 12:17:11 +01:00 
			
		
		
		
	Fix clang warning on self-assignment
This commit is contained in:
		| @@ -94,7 +94,7 @@ TEST_CASE( "StringRef", "[Strings][StringRef]" ) { | ||||
|             REQUIRE( ss.currentData() != s.currentData() ); // different pointer value | ||||
|  | ||||
|             SECTION( "Self-assignment after substring" ) { | ||||
|                 ss = ss; | ||||
|                 ss = *&ss; // the *& are there to suppress warnings (see: "Improvements to Clang's diagnostics" in https://rev.ng/gitlab/revng-bar-2019/clang/raw/master/docs/ReleaseNotes.rst) | ||||
|                 REQUIRE(isOwned(ss) == true); | ||||
|             } | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Phil Nash
					Phil Nash