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:
parent
ca660c0cbf
commit
4344bb1984
1 changed files with 3 additions and 3 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue