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

Clean up some code warning #821

Merged
merged 13 commits into from Jan 23, 2024
Merged

Clean up some code warning #821

merged 13 commits into from Jan 23, 2024

Conversation

RanMaoyi
Copy link
Contributor

@RanMaoyi RanMaoyi commented Jan 23, 2024

The log_log side effects and some hard-to-clean code warnings have not been removed yet

Signed-off-by: Moi Ran <maoyi.ran@emqx.io>
Signed-off-by: Moi Ran <maoyi.ran@emqx.io>
Signed-off-by: Moi Ran <maoyi.ran@emqx.io>
Signed-off-by: Moi Ran <maoyi.ran@emqx.io>
Signed-off-by: Moi Ran <maoyi.ran@emqx.io>
Signed-off-by: Moi Ran <maoyi.ran@emqx.io>
Signed-off-by: Moi Ran <maoyi.ran@emqx.io>
Signed-off-by: Moi Ran <maoyi.ran@emqx.io>
Signed-off-by: Moi Ran <maoyi.ran@emqx.io>
Signed-off-by: Moi Ran <maoyi.ran@emqx.io>
Signed-off-by: Moi Ran <maoyi.ran@emqx.io>
Copy link

codecov bot commented Jan 23, 2024

Codecov Report

Attention: 10 lines in your changes are missing coverage. Please review.

Comparison is base (aada987) 65.80% compared to head (5bead92) 65.75%.

Files Patch % Lines
src/mqtt/protocol/exchange/exchange_server.c 0.00% 6 Missing ⚠️
src/supplemental/nanolib/mqtt_db.c 60.00% 2 Missing ⚠️
src/core/socket.c 0.00% 1 Missing ⚠️
src/supplemental/nanolib/ringbuffer/ringbuffer.c 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #821      +/-   ##
==========================================
- Coverage   65.80%   65.75%   -0.06%     
==========================================
  Files         129      129              
  Lines       37242    37238       -4     
==========================================
- Hits        24508    24486      -22     
- Misses      12734    12752      +18     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Moi Ran <maoyi.ran@emqx.io>
Copy link
Member

@JaylinYu JaylinYu left a comment

Choose a reason for hiding this comment

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

thank!

@JaylinYu JaylinYu merged commit 378a6f9 into main Jan 23, 2024
15 of 16 checks passed
@@ -447,7 +447,7 @@ extern int nni_plat_udp_sockname(nni_plat_udp *, nni_sockaddr *);
// in APIs to transport file descriptors, or across a fork/exec boundary (so
// that child processes may use these with socket to inherit a socket that is
// connected to the parent.)
extern int nni_socket_pair(int *);
extern int nni_socket_pair(int [2]);
Copy link
Member

Choose a reason for hiding this comment

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

It seems a warning of nng.

Copy link
Member

Choose a reason for hiding this comment

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

whoops, this shall not be modified

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nng already fixed this in nanomsg/nng#1760

Copy link
Member

Choose a reason for hiding this comment

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

then there shall be sth wrong on sync....

@@ -179,7 +179,7 @@ nng_random(void)
}

int
nng_socket_pair(int *fds)
nng_socket_pair(int fds[2])
Copy link
Member

Choose a reason for hiding this comment

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

Also a warning from nng

@wanghaEMQ wanghaEMQ deleted the moi/ringbuffer branch January 24, 2024 03:49
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

5 participants