Skip to content

Pragma ignored by 2018 version of xtensa compiler in BLERemoteService #3137

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
jubueche opened this issue Aug 26, 2019 · 6 comments
Closed
Labels
Status: Stale Issue is stale stage (outdated/stuck)

Comments

@jubueche
Copy link
Contributor

Description:

Describe your problem here

I am running the 2018 version of xtensa. When I was compiling my program it was unsuccessful, because of this line:

#pragma GCC diagnostic ignored "-Wunused-but-set-parameter"
in BLERemoteService.cpp line 238.

I just changed it to 'warning' and moved it up the file and that fixed the problem for me.

@atanisoft
Copy link
Collaborator

What compiler version is that? "2018 xtensa" doesn't mean much as a GCC version number.

@atanisoft
Copy link
Collaborator

this is also tracked via this bug.

@jubueche
Copy link
Contributor Author

xtensa-esp32-elf-cpp (crosstool-NG esp32-2018r1) 8.2.0
That's when I get when I run --version. How do you see the GCC version of the used GCC compiler?
Anyway, I wonder why this is not fixed.

@atanisoft
Copy link
Collaborator

GCC 8.2.0 is not the supported version for this project which is still stuck on GCC 5.2.0 which is used by ESPIDF v3.2. GCC 8.x will be supported once ESPIDF v4 has reached a "stable" point.

But I do agree, I can't see any reason why this bug in the GCC g++ compiler has not been fixed yet.

As for this BLERemoteService.cpp fix, submit a PR to remove that pragma line entirely.

@jubueche
Copy link
Contributor Author

Ok I submitted one here.

@stale
Copy link

stale bot commented Oct 25, 2019

[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Status: Stale Issue is stale stage (outdated/stuck) label Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Stale Issue is stale stage (outdated/stuck)
Projects
None yet
Development

No branches or pull requests

2 participants