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

Fix compilation with -DHAVE_STATS=0 #5

Closed
wants to merge 5 commits into from

Conversation

seppo0010
Copy link
Contributor

No description provided.

@@ -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.

Copy link
Contributor Author

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.

@@ -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.

Copy link
Contributor Author

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.

@seppo0010
Copy link
Contributor Author

@thinkingfish do you think we can merge this now?

@thinkingfish

This comment was marked as spam.

@thinkingfish

This comment was marked as spam.

@thinkingfish thinkingfish deleted the swaisbrot/have-stats-off branch April 2, 2016 06:38
michalbiesek added a commit to michalbiesek/pelikan that referenced this pull request Jun 7, 2019
Fix cleaning after partial request and code cleanup
swlynch99 pushed a commit to swlynch99/pelikan-twitter that referenced this pull request Sep 30, 2019
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.

2 participants