Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill unused variable.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 3 May 2022 19:56:18 +0000 (21:56 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 3 May 2022 19:56:28 +0000 (21:56 +0200)
src/mc/remote/RemoteProcess.cpp

index 3923fd8..6862899 100644 (file)
@@ -319,7 +319,7 @@ std::string RemoteProcess::read_string(RemotePtr<char> address) const
       continue;
     xbt_assert(c > 0, "Could not read string from remote process");
 
-    if (const void* p = memchr(res.data() + off, '\0', c))
+    if (memchr(res.data() + off, '\0', c))
       return std::string(res.data());
 
     off += c;