You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by jd...@apache.org on 2020/07/19 12:18:21 UTC

[qpid-dispatch] branch master updated: DISPATCH-1715 Fix -Wgnu-folding-constant in a test (#776)

This is an automated email from the ASF dual-hosted git repository.

jdanek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git


The following commit(s) were added to refs/heads/master by this push:
     new 27cb912  DISPATCH-1715 Fix -Wgnu-folding-constant in a test (#776)
27cb912 is described below

commit 27cb91232f81a5c4d35672f72726dbea1216c9f6
Author: Jiri Daněk <jd...@redhat.com>
AuthorDate: Sun Jul 19 14:18:11 2020 +0200

    DISPATCH-1715 Fix -Wgnu-folding-constant in a test (#776)
---
 tests/hash_test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/hash_test.c b/tests/hash_test.c
index 5bf7fe0..04d7dce 100644
--- a/tests/hash_test.c
+++ b/tests/hash_test.c
@@ -32,7 +32,7 @@ static const unsigned char *keys[] = {
     (const unsigned char *) "",
 };
 
-static const int key_count = sizeof(keys)/sizeof(keys[0]);
+enum { key_count = sizeof(keys) / sizeof(keys[0]) };
 
 
 // add using iterator key, lookup and remove using string key


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org