Remove GCC -Wall warnings

Clear up warnings generated with -Wall used to compile.  No functional change.
This commit is contained in:
Earle F. Philhower, III committed 2017-11-18 18:53:58 -08:00
1 parent 5e5a15359c
commit f4702a0719
2 files changed
+5 -3

No files matched your search

+3 -3
View File
@@ -104,15 +104,15 @@ bool AudioGeneratorAAC::loop()
// buff[0] start of frame, decode it...
unsigned char *inBuff = reinterpret_cast<unsigned char *>(buff);
int bytesLeft = buffValid;
int ret;
if (ret = AACDecode(hAACDecoder, &inBuff, &bytesLeft, outSample)) {
int ret = AACDecode(hAACDecoder, &inBuff, &bytesLeft, outSample);
if (ret) {
// Error, skip the frame...
Serial.printf("AAC decode error %d\n", ret);
} else {
lastFrameEnd = buffValid - bytesLeft;
AACFrameInfo fi;
AACGetLastFrameInfo(hAACDecoder, &fi);
if (fi.sampRateOut != lastRate) {
if ((int)fi.sampRateOut != (int)lastRate) {
output->SetRate(fi.sampRateOut);
lastRate = fi.sampRateOut;
}