-
Notifications
You must be signed in to change notification settings - Fork 174
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
Fix compilation with -DHAVE_STATS=0 #5
Conversation
@@ -96,7 +96,9 @@ rbuf_destroy(struct rbuf *buf) | |||
log_verb("Destroy ring buffer %p", buf); | |||
|
|||
if (buf != NULL) { | |||
#if defined CC_STATS && CC_STATS == 1 |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the warning:
/home/seppo/Projects/pelikan/deps/ccommon/src/cc_rbuf.c: In function 'rbuf_destroy':
/home/seppo/Projects/pelikan/deps/ccommon/src/cc_rbuf.c:99:18: warning: unused variable 'cap' [-Wunused-variable]
uint32_t cap = buf->cap;
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -443,8 +446,10 @@ cuckoo_suite(void) | |||
tcase_add_test(tc_basic_req, test_delete_basic_random_false); | |||
tcase_add_test(tc_basic_req, test_expire_basic_random_true); | |||
tcase_add_test(tc_basic_req, test_expire_basic_random_false); | |||
#if defined CC_STATS && CC_STATS == 1 |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you cannot at least run a subset of the tests when stats is off, how do you even know if its behavior is correct?
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@thinkingfish do you think we can merge this now? |
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
Fix cleaning after partial request and code cleanup
Add cc_array expand test
No description provided.