Skip to content

Make fails while building the module in FreeSWITCH due to ISO C90 forbids mixed declarations #91

@shaunjstokes

Description

@shaunjstokes

/usr/src/freeswitch-1.10.12/src/mod/applications/mod_audio_stream/mod_audio_stream.c: In function 'capture_callback':
/usr/src/freeswitch-1.10.12/src/mod/applications/mod_audio_stream/mod_audio_stream.c:35:17: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
35 | int channelIsClosing = tech_pvt->close_requested ? 0 : 1;
| ^~~

Fixed with the following change.
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions