Skip to content

Bugfix: getNatBehavior return #2114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

vikramdattu
Copy link
Contributor

@vikramdattu vikramdattu commented Apr 16, 2025

Fix issue where compiler complains on function return type!

  • Following error was seen:
    In function 'getNatBehaviorStr': NatBehaviorDiscovery.c:385:1: error: control reaches end of non-void function [-Werror=return-type]
  • Fixed this by returning NAT_BEHAVIOR_NONE_STR

@sirknightj
Copy link
Contributor

👍

Would suggest adding an error log for the new case.

Please target develop branch and we can get this merged in.

 - Following error was seen:
  `In function 'getNatBehaviorStr': NatBehaviorDiscovery.c:385:1: error: control reaches end of non-void function [-Werror=return-type]`
 - Fixed this by returning `NAT_BEHAVIOR_NONE_STR`
@vikramdattu vikramdattu force-pushed the bugfix/get_nat_behavior_return branch from b3c8d1c to 16b1377 Compare April 25, 2025 05:17
@vikramdattu vikramdattu changed the base branch from main to develop April 25, 2025 05:18
@vikramdattu
Copy link
Contributor Author

Hello @sirknightj updated the commit description as well as the PR details. Also, I have changed the target branch to develop.

@sirknightj
Copy link
Contributor

CI passing: #2119

@sirknightj sirknightj merged commit f8c2418 into awslabs:develop May 1, 2025
4 of 43 checks passed
sirknightj added a commit that referenced this pull request May 7, 2025
* Add MIPS32 cross compilation, refactor existing cross-compilation jobs (#2091)

* MIPS32 cross compilation, threadpool, and use DRY

* Add the ZLIB changes too

* Address comment

* Add opus sample frame generation GStreamer command to the readme (#2098)

* Add data channel option to the readme (#2099)

* Add data channel option to the readme

* Address comments

* Fixing the SPS/PPS/VPS for the H.265 samples to ensure that Safari playback does not pause. (#2111)

* Upgrade to Ubuntu 22, refactor CI to use DRY, seperate the jobs (#2116)

* Upgrade to Ubuntu 22, refactor CI to use DRY, seperate the jobs

* Additional cleanup

* Fix the uint16 promotion case (#2101)

* Cleaning up stale resources, adjusted logging (#2117)

* Global log level

* Add progress bar and run the deletion script

* Undo git_shallow for non-tagged versions

* Install dependencies for AWS SDK CPP

* Use ubuntu 22 container for the codecov

* Downgrade to Ubuntu 20

* Add CD and change to bash

* Install curl

* Increase history for codecov

* Seperate the steps for generating the report and uploading it

* Configure LWS logs with KVS log level (#2118)

* getNatBehaviorStr: Fix function return value compile error (#2114)

- Following error was seen:
  `In function 'getNatBehaviorStr': NatBehaviorDiscovery.c:385:1: error: control reaches end of non-void function [-Werror=return-type]`
 - Fixed this by returning `NAT_BEHAVIOR_NONE_STR`

* Allow branches named with pattern 'test-pr-*' to trigger the CI (#2120)

* Increase the signaling message receive buffer size (#2126)

* Increase the buffer sizes to accomodate for H.265 support in Chrome

* Bump the project version to 1.12.1

* 2x was too much, make it less

---------

Co-authored-by: Siva Somasundaram <34496097+unicornss@users.noreply.github.com>
Co-authored-by: Vikram Dattu <dattuvikram@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants