offset = sample_offset;
}
if (offset < 0) {
- ast_log(LOG_WARNING, "negative offset %ld, resetting to 0\n", offset);
+ ast_log(LOG_WARNING, "negative offset %ld, resetting to 0\n", (long) offset);
offset = 0;
}
if (whence == SEEK_FORCECUR && offset > max) { /* extend the file */
ret = 0; /* successful */
} else {
if (offset > max) {
- ast_log(LOG_WARNING, "offset too large %ld, truncating to %ld\n", offset, max);
+ ast_log(LOG_WARNING, "offset too large %ld, truncating to %ld\n", (long) offset, (long) max);
offset = max;
}
ret = fseeko(fs->f, offset, SEEK_SET);
if (offset < 0) {
offset = 0;
- ast_log(LOG_WARNING, "negative offset %ld, resetting to 0\n", offset);
+ ast_log(LOG_WARNING, "negative offset %ld, resetting to 0\n", (long) offset);
}
if (whence == SEEK_FORCECUR && offset > max) {
size_t left = offset - max;
ret = 0; /* success */
} else {
if (offset > max) {
- ast_log(LOG_WARNING, "offset too large %ld, truncating to %ld\n", offset, max);
+ ast_log(LOG_WARNING, "offset too large %ld, truncating to %ld\n", (long) offset, (long) max);
offset = max;
}
ret = fseeko(fs->f, offset, SEEK_SET);
unsigned int sr = 0;
unsigned int frame_chain;
- unsigned int LARc[8], Nc[4], Mc[4], bc[4], xmaxc[4], xmc[13*4];
+ unsigned int LARc[8], Nc[4], Mc[4], bc[4], xmaxc[4];
+ /* silence bogus compiler warning */
+ unsigned int xmc[13*4] = { 0, };
sr = *c++;
LARc[0] = sr & 0x3f; sr >>= 6;