Skip to content
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

Pr/strict prototypes (IDFGH-757) #2937

Closed
wants to merge 4 commits into from

Conversation

M1cha
Copy link
Contributor

@M1cha M1cha commented Jan 11, 2019

While in C++ () is the same as (void), in C it's not and can be quite dangerous.

@CLAassistant
Copy link

CLAassistant commented Jan 11, 2019

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@igrr igrr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @M1cha, and sorry for taking so long to review it.

It seems it has picked up some merge conflicts, and might get a few more in the coming days since we will be moving some IDF files around. I can take it from here, rebase to the master branch, and resolve the conflicts — would this be okay for you? I'll keep the original commit authorship.

If not, please rebase these commits to master, removing the change to project.mk. I can then add CI related changes on top.

Thanks again.

@@ -355,7 +355,7 @@ CFLAGS := $(strip \
-std=gnu99 \
$(OPTIMIZATION_FLAGS) $(DEBUG_FLAGS) \
$(COMMON_FLAGS) \
$(COMMON_WARNING_FLAGS) -Wno-old-style-declaration \
$(COMMON_WARNING_FLAGS) -Wno-old-style-declaration -Wstrict-prototypes \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will probably not enable this for all projects — since we can't expect all our users to write -Wstrict-prototypes-clean code (we aren't even doing it ourselves, yet!). However we can enable it in CI checks in the same way we enable -Wwrite-strings.

(Note this also needs to be done for the CMake build system)

@M1cha
Copy link
Contributor Author

M1cha commented Mar 15, 2019

It's fine if you rebase it and solve the conflicts, anything else would be a catch-up game with new commits for a big change like this.

@github-actions github-actions bot changed the title Pr/strict prototypes Pr/strict prototypes (IDFGH-757) Mar 15, 2019
igrr pushed a commit that referenced this pull request Aug 5, 2019
igrr pushed a commit that referenced this pull request Aug 5, 2019
igrr pushed a commit that referenced this pull request Aug 5, 2019
trombik pushed a commit to trombik/esp-idf that referenced this pull request Aug 9, 2019
trombik pushed a commit to trombik/esp-idf that referenced this pull request Aug 9, 2019
trombik pushed a commit to trombik/esp-idf that referenced this pull request Aug 9, 2019
@Alvin1Zhang
Copy link
Collaborator

@M1cha Thanks for the contribution and sorry for the slow turnaround. The PR has been merged, thanks.

david-cermak pushed a commit to david-cermak/esp-protocols that referenced this pull request Mar 24, 2022
gabsuren pushed a commit to gabsuren/esp-protocols-1 that referenced this pull request Mar 25, 2022
gabsuren pushed a commit to gabsuren/esp-protocols-1 that referenced this pull request Apr 8, 2022
gabsuren pushed a commit to gabsuren/esp-protocols-1 that referenced this pull request May 17, 2022
gabsuren pushed a commit to gabsuren/esp-protocols-1 that referenced this pull request May 27, 2022
gabsuren pushed a commit to gabsuren/esp-protocols-1 that referenced this pull request May 27, 2022
gabsuren pushed a commit to gabsuren/esp-protocols-1 that referenced this pull request May 27, 2022
0xFEEDC0DE64 pushed a commit to 0xFEEDC0DE64/esp-protocols that referenced this pull request Jun 30, 2022
euripedesrocha pushed a commit to euripedesrocha/esp-protocols that referenced this pull request Oct 17, 2022
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.

None yet

4 participants