1
0
Fork 0

Silence some warnings in the misc directory

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3826
This commit is contained in:
Peter Veenstra 2013-03-24 21:12:43 +00:00
parent ca660c0cbf
commit 4344bb1984

View file

@ -288,7 +288,7 @@ bool Prop_string::CheckValue(Value const& in, bool warn){
return true;
}
if((*it).ToString() == "%u") {
Bitu value;
Bit32u value;
if(sscanf(in.ToString().c_str(),"%u",&value) == 1) {
return true;
}
@ -651,7 +651,7 @@ bool Config::PrintConfig(char const * const configfilename) const {
}
i=0;
char prefix[80];
snprintf(prefix,80, "\n# %*s ", maxwidth, "");
snprintf(prefix,80, "\n# %*s ", (int)maxwidth, "");
while ((p = sec->Get_prop(i++))) {
std::string help = p->Get_help();
std::string::size_type pos = std::string::npos;
@ -659,7 +659,7 @@ bool Config::PrintConfig(char const * const configfilename) const {
help.replace(pos, 1, prefix);
}
fprintf(outfile, "# %*s: %s", maxwidth, p->propname.c_str(), help.c_str());
fprintf(outfile, "# %*s: %s", (int)maxwidth, p->propname.c_str(), help.c_str());
std::vector<Value> values = p->GetValues();
if (!values.empty()) {