fix misc compile warnings
This commit is contained in:
parent
2993a9ad57
commit
041feb25c1
@ -316,10 +316,8 @@ void Package::expandShellCommands(std::string& input,
|
|||||||
for (int i = 0; i < TAG_COUNT; ++i) {
|
for (int i = 0; i < TAG_COUNT; ++i) {
|
||||||
string::size_type pos, dpos = 0;
|
string::size_type pos, dpos = 0;
|
||||||
|
|
||||||
int len;
|
|
||||||
pos = 0;
|
pos = 0;
|
||||||
while ((pos = input.find(startTag[i], pos)) != string::npos) {
|
while ((pos = input.find(startTag[i], pos)) != string::npos) {
|
||||||
len = input.length();
|
|
||||||
|
|
||||||
if (unameBuf.release) {
|
if (unameBuf.release) {
|
||||||
input = replaceAll(input,
|
input = replaceAll(input,
|
||||||
|
@ -553,7 +553,7 @@ void PrtGet::listInstalled()
|
|||||||
l.erase(mit);
|
l.erase(mit);
|
||||||
|
|
||||||
InstallTransaction trans( name, m_repo, m_pkgDB, m_config );
|
InstallTransaction trans( name, m_repo, m_pkgDB, m_config );
|
||||||
InstallTransaction::InstallResult result = trans.calcDependencies();
|
InstallTransaction::InstallResult result __attribute__((unused)) = trans.calcDependencies();
|
||||||
const list<string>& depRef = trans.dependencies();
|
const list<string>& depRef = trans.dependencies();
|
||||||
list<string>::const_iterator it = depRef.begin();
|
list<string>::const_iterator it = depRef.begin();
|
||||||
|
|
||||||
@ -1810,7 +1810,7 @@ void PrtGet::ls()
|
|||||||
DIR* dir = opendir(dirname.c_str());
|
DIR* dir = opendir(dirname.c_str());
|
||||||
struct dirent* entry;
|
struct dirent* entry;
|
||||||
vector<string> files;
|
vector<string> files;
|
||||||
while (entry = readdir(dir)) {
|
while ((entry = readdir(dir))) {
|
||||||
string dName = entry->d_name;
|
string dName = entry->d_name;
|
||||||
if (dName != "." && dName != "..") {
|
if (dName != "." && dName != "..") {
|
||||||
files.push_back(dName);
|
files.push_back(dName);
|
||||||
|
Loading…
Reference in New Issue
Block a user