[devel] [PATCH for apt 11/38] Remove useless variable shadowing

Aleksei Nikiforov darktemplar на altlinux.org
Вт Дек 10 18:23:16 MSK 2019


Found via cppcheck
---
 apt/cmdline/apt-cdrom.cc | 1 -
 1 file changed, 1 deletion(-)

diff --git a/apt/cmdline/apt-cdrom.cc b/apt/cmdline/apt-cdrom.cc
index eded525..93ad41d 100644
--- a/apt/cmdline/apt-cdrom.cc
+++ b/apt/cmdline/apt-cdrom.cc
@@ -146,7 +146,6 @@ bool FindPackages(string CD,vector<string> &List,vector<string> &SList,
 #endif
 
       // See if the name is a sub directory
-      struct stat Buf;
       if (stat(Dir->d_name,&Buf) != 0)
 	 continue;      
       
-- 
2.24.0



Подробная информация о списке рассылки Devel