Fix C23 compilation errors (#814)
This commit is contained in:
1 parent
05f2fb0045
commit
74fc1f09bb
3 files changed
+5
-4
No files matched your search
@@ -276,6 +276,7 @@ int PNS(AACDecInfo *aacDecInfo, int ch) {
|
||||
const /*short*/ int *sfbTab;
|
||||
unsigned char *sfbCodeBook;
|
||||
short *scaleFactors;
|
||||
(void) scaleFactors;
|
||||
int msMaskOffset, checkCorr, genNew;
|
||||
unsigned char msMask;
|
||||
unsigned char *msMaskPtr;
|
||||
|
||||
+2
-2
@@ -873,7 +873,7 @@ enum mad_flow mad_synth_frame(struct mad_synth *synth, struct mad_frame const *f
|
||||
//void mad_synth_frame(struct mad_synth *synth, struct mad_frame const *frame)
|
||||
{
|
||||
unsigned int nch, ns;
|
||||
enum mad_flow(*synth_frame)(struct mad_synth *, struct mad_frame const *, unsigned int, unsigned int, unsigned int, enum mad_flow(*output_func)(), void *);
|
||||
enum mad_flow(*synth_frame)(struct mad_synth *, struct mad_frame const *, unsigned int, unsigned int, unsigned int, enum mad_flow(*output_func)(void *, const struct mad_header *, struct mad_pcm *), void *);
|
||||
|
||||
nch = MAD_NCHANNELS(&frame->header);
|
||||
ns = MAD_NSBSAMPLES(&frame->header);
|
||||
@@ -902,7 +902,7 @@ enum mad_flow mad_synth_frame(struct mad_synth *synth, struct mad_frame const *f
|
||||
// Up to caller to increment synth->phase, only call proper # of ns
|
||||
enum mad_flow mad_synth_frame_onens(struct mad_synth *synth, struct mad_frame const *frame, unsigned int ns) {
|
||||
unsigned int nch; //, ns;
|
||||
enum mad_flow(*synth_frame)(struct mad_synth *, struct mad_frame const *, unsigned int, unsigned int, unsigned int, enum mad_flow(*output_func)(), void *);
|
||||
enum mad_flow(*synth_frame)(struct mad_synth *, struct mad_frame const *, unsigned int, unsigned int, unsigned int, enum mad_flow(*output_func)(void *, const struct mad_header *, struct mad_pcm *), void *);
|
||||
|
||||
nch = MAD_NCHANNELS(&frame->header);
|
||||
// ns = MAD_NSBSAMPLES(&frame->header);
|
||||
|
||||
+2
-2
@@ -20,8 +20,8 @@ while [ $(echo $sketches | wc -w) -gt 0 ]; do
|
||||
echo "::group::Compiling $(basename $sketch) for $fqbn into $outdir"
|
||||
if [ 0"$werror" -gt 0 ]; then
|
||||
./arduino-cli compile -b "$fqbn" -v --warnings all \
|
||||
--build-property "compiler.c.extra_flags=-Wall -Wextra -Werror -Wno-ignored-qualifiers" \
|
||||
--build-property "compiler.cpp.extra_flags=-Wall -Wextra -Werror -Wno-ignored-qualifiers -Wno-overloaded-virtual" \
|
||||
--build-property "compiler.c.extra_flags=-Wall -Wextra -Werror -Wno-ignored-qualifiers -Wno-unused-parameter" \
|
||||
--build-property "compiler.cpp.extra_flags=-Wall -Wextra -Werror -Wno-ignored-qualifiers -Wno-overloaded-virtual -Wno-unused-parameter" \
|
||||
--build-path "$outdir" "$sketch" || exit 255
|
||||
else
|
||||
./arduino-cli compile -b "$fqbn" -v --warnings all --build-path "$outdir" "$sketch" || exit 255
|
||||
|
||||
Reference in new issue
Block a user