Skip to content

[BUG] warnings building SoftwareSerial example #381

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

Closed
henrygab opened this issue Nov 8, 2019 · 3 comments
Closed

[BUG] warnings building SoftwareSerial example #381

henrygab opened this issue Nov 8, 2019 · 3 comments
Labels

Comments

@henrygab
Copy link
Collaborator

henrygab commented Nov 8, 2019

Describe the bug
Sample code currently emits warnings.

.../SoftwareSerial/SoftwareSerial.cpp:222:6:
    warning: always_inline function might not be inlinable [-Wattributes]

 void SoftwareSerial::recv()
      ^~~~~~~~~~~~~~

Set up (please complete the following information)

To Reproduce
Steps to reproduce the behavior:

  1. Start a build based on PR 376
  2. Allow the build to complete
  3. Expand one of the three build jobs that enable additional warnings
  4. Review the build logs
    for the sample being fixed.

Expected behavior
Sample code should build without warnings.

@henrygab henrygab added the Bug label Nov 8, 2019
@henrygab
Copy link
Collaborator Author

henrygab commented Nov 8, 2019

OK … I'll admit I'm not entirely sure how I'd remove this warning.

@hathach
Copy link
Member

hathach commented Jun 3, 2021

I am happy to say that this issue is addressed, the recv() is declared as inline but in fact gcc cannot make it inline and have to emit the actual function. I have fixed this recent release, I am glad to say that we are finally building with --all warnings flags in ci https://github.com/adafruit/Adafruit_nRF52_Arduino/blob/master/tools/build_all.py#L62 . Other Adafruit core and libraries also compile with all in CI now, And you are the big reason to push that. Thank you very much 💯 💯

@hathach hathach closed this as completed Jun 3, 2021
@henrygab
Copy link
Collaborator Author

henrygab commented Jun 3, 2021

Thank you! I know you've been extremely busy, and I appreciate the work that went into enabling --warnings all. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants