ref: 483453242103e9eeb88dd54f585ba091c7f3aaba
parent: b3b72045d5012a7530e1362cc4a22d91debdac5b
author: robs <robs>
date: Sat Apr 18 08:59:40 EDT 2009
fix gcc 4.3.3 warnings
--- a/src/formats_i.c
+++ b/src/formats_i.c
@@ -207,7 +207,7 @@
lsx_fail_errno(ft,SOX_EPERM, "file not seekable");
} else {
if (fseeko(ft->fp, offset, whence) == -1)
- lsx_fail_errno(ft,errno,strerror(errno));
+ lsx_fail_errno(ft,errno, "%s", strerror(errno));
else
ft->sox_errno = SOX_SUCCESS;
}
--- a/src/wav.c
+++ b/src/wav.c
@@ -176,7 +176,7 @@
errmsg = lsx_ms_adpcm_block_expand_i(ft->signal.channels, wav->nCoefs, wav->lsx_ms_adpcm_i_coefs, wav->packet, wav->samples, samplesThisBlock);
if (errmsg)
- lsx_warn(errmsg);
+ lsx_warn("%s", errmsg);
return samplesThisBlock;
}
--- a/src/wavpack.c
+++ b/src/wavpack.c
@@ -105,7 +105,7 @@
config.sample_rate = (int32_t)(ft->signal.rate + .5);
config.flags = CONFIG_VERY_HIGH_FLAG;
if (!WavpackSetConfiguration(p->codec, &config, ft->signal.length? (uint32_t) ft->signal.length / ft->signal.channels : (uint32_t)-1)) {
- lsx_fail_errno(ft, SOX_EHDR, WavpackGetErrorMessage(p->codec));
+ lsx_fail_errno(ft, SOX_EHDR, "%s", WavpackGetErrorMessage(p->codec));
return SOX_EOF;
}
WavpackPackInit(p->codec);