[MPlayer-dev-eng] [PATCH] trivial changes to suppress compiler warnings

Brian Paterni bpaterni at gmail.com
Thu Oct 22 05:38:45 CEST 2009


Here are some changes I made to remove a few compiler warnings. Most are 
just modifications to the proper print format specifiers on some mp_msg 
calls.
I'm assuming that mp_msg uses or implements the same format 
specifiers as printf here, so if that's not the case you can probably 
disregard this patch.
-------------- next part --------------
SW5kZXg6IGxpYm1wY29kZWNzL3ZmX3BwNy5jCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIGxpYm1wY29kZWNzL3Zm
X3BwNy5jCShyZXZpc2lvbiAyOTc4OSkKKysrIGxpYm1wY29kZWNzL3ZmX3BwNy5jCSh3b3JraW5n
IGNvcHkpCkBAIC0yODYsOCArMjg2LDggQEAKICAgICBpbnQgeCwgeTsKICAgICBjb25zdCBpbnQg
c3RyaWRlPSBpc19sdW1hID8gcC0+dGVtcF9zdHJpZGUgOiAoKHdpZHRoKzE2KzE1KSYofjE1KSk7
CiAgICAgdWludDhfdCAgKnBfc3JjPSBwLT5zcmMgKyA4KnN0cmlkZTsKLSAgICBEQ1RFTEVNICpi
bG9jaz0gcC0+c3JjOwotICAgIERDVEVMRU0gKnRlbXA9IHAtPnNyYyArIDMyOworICAgIERDVEVM
RU0gKmJsb2NrPSAoRENURUxFTSopcC0+c3JjOworICAgIERDVEVMRU0gKnRlbXA9IChEQ1RFTEVN
KilwLT5zcmMgKyAzMjsKIAogICAgIGlmICghc3JjIHx8ICFkc3QpIHJldHVybjsgLy8gSEFDSyBh
dm9pZCBjcmFzaCBmb3IgWTggY29sb3Vyc3BhY2UKICAgICBmb3IoeT0wOyB5PGhlaWdodDsgeSsr
KXsKSW5kZXg6IGxpYm1wY29kZWNzL3ZkX3JlYWx2aWQuYwo9PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBsaWJtcG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gIFslc11cbiIsIGh0dHBfaGRyLT5tZXRob2QgKTsKIAltcF9tc2coTVNHVF9ORVRX
T1JLLE1TR0xfViwic3RhdHVzIGNvZGU6ICAgICAgICBbJWRdXG4iLCBodHRwX2hkci0+c3RhdHVz
X2NvZGUgKTsKIAltcF9tc2coTVNHVF9ORVRXT1JLLE1TR0xfViwicmVhc29uIHBocmFzZTogICAg
ICBbJXNdXG4iLCBodHRwX2hkci0+cmVhc29uX3BocmFzZSApOwotCW1wX21zZyhNU0dUX05FVFdP
UkssTVNHTF9WLCJib2R5IHNpemU6ICAgICAgICAgIFslZF1cbiIsIGh0dHBfaGRyLT5ib2R5X3Np
emUgKTsKKwltcF9tc2coTVNHVF9ORVRXT1JLLE1TR0xfViwiYm9keSBzaXplOiAgICAgICAgICBb
JXp1XVxuIiwgaHR0cF9oZHItPmJvZHlfc2l6ZSApOwogCiAJbXBfbXNnKE1TR1RfTkVUV09SSyxN
U0dMX1YsIkZpZWxkczpcbiIpOwogCWZpZWxkID0gaHR0cF9oZHItPmZpcnN0X2ZpZWxkOwpJbmRl
eDogbGlidm8veDExX2NvbW1vbi5jCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIGxpYnZvL3gxMV9jb21tb24uYwko
cmV2aXNpb24gMjk3ODkpCisrKyBsaWJ2by94MTFfY29tbW9uLmMJKHdvcmtpbmcgY29weSkKQEAg
LTEzNDEsNyArMTM0MSw3IEBACiAKIHZvaWQgdm9feDExX2Z1bGxzY3JlZW4odm9pZCkKIHsKLSAg
ICBpbnQgeCwgeSwgdywgaDsKKyAgICBpbnQgeD0wLCB5PTAsIHc9MCwgaD0wOwogCiAgICAgaWYg
KFdpbklEID49IDApIHsKICAgICAgICAgdm9fZnMgPSAhdm9fZnM7CkluZGV4OiBsb2FkZXIvcXR4
L3F0eHNkay9jb21wb25lbnRzLmgKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09P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
b2lkKiljZC0+Y29tcGxldGlvblByb2NSZWNvcmQsCisgICAgICh2b2lkKiljZC0+ZGF0YVByb2NS
ZWNvcmQsIGNkLT5mcmFtZVRpbWUsIGNkLT5zb3VyY2VEYXRhLCBjZC0+c3luY0ZyYW1lVGltZSk7
CiAvLyAgICBwcmludGYoIlxuIik7CiAKICAgICBwcmludGYoIj09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuIik7CkluZGV4OiBsaWJtcGRl
bXV4L2RlbXV4X2xtbG00LmMKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gbGlibXBkZW11eC9kZW11eF9sbWxtNC5j
CShyZXZpc2lvbiAyOTc4OSkKKysrIGxpYm1wZGVtdXgvZGVtdXhfbG1sbTQuYwkod29ya2luZyBj
b3B5KQpAQCAtNzIsNyArNzIsNyBAQAogICAgIGlmICggZnJhbWUtPmNoYW5uZWxObyA+IDcgfHwK
ICAgICAgICAgIGZyYW1lLT5mcmFtZVNpemUgPiBNQVhfUEFDS0VUX1NJWkUgfHwgZnJhbWUtPmZy
YW1lU2l6ZSA8PSAwKQogICAgIHsKLSAgICAgICAgbXBfbXNnKE1TR1RfREVNVVgsIE1TR0xfViwg
IkludmFsaWQgcGFja2V0IGluIExNTE00IHN0cmVhbTogY2g9JWQgc2l6ZT0lZFxuIiwgZnJhbWUt
PmNoYW5uZWxObywgZnJhbWUtPmZyYW1lU2l6ZSk7CisgICAgICAgIG1wX21zZyhNU0dUX0RFTVVY
LCBNU0dMX1YsICJJbnZhbGlkIHBhY2tldCBpbiBMTUxNNCBzdHJlYW06IGNoPSVkIHNpemU9JXpk
XG4iLCBmcmFtZS0+Y2hhbm5lbE5vLCBmcmFtZS0+ZnJhbWVTaXplKTsKICAgICAgICAgcmV0dXJu
IDA7CiAgICAgfQogICAgIHN3aXRjaCAoZnJhbWUtPmZyYW1l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xv
YXQpYXNpemUvKGZsb2F0KWFzYW1wbGVzKSooZmxvYXQpc2hfYXVkaW8tPmF1ZGlvLmR3UmF0ZS8o
ZmxvYXQpc2hfYXVkaW8tPmF1ZGlvLmR3U2NhbGU7Cg==


More information about the MPlayer-dev-eng mailing list