summaryrefslogtreecommitdiff
path: root/tests/virbitmaptest.c
diff options
context:
space:
mode:
authorJán Tomko <jtomko@redhat.com>2019-10-14 14:45:03 +0200
committerJán Tomko <jtomko@redhat.com>2019-10-15 11:25:25 +0200
commit0d94f02455074e6a1f35dc4862dce2ca7256e377 (patch)
tree3a147656007e159f90fab2ae3ad63fb3d7942e9b /tests/virbitmaptest.c
parent7c655468e8e8b0acfeedc93874ac981710dd7969 (diff)
downloadlibvirt-0d94f02455074e6a1f35dc4862dce2ca7256e377.tar.gz
tests: use G_GNUC_UNUSED
Use G_GNUC_UNUSED from GLib instead of ATTRIBUTE_UNUSED. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Diffstat (limited to 'tests/virbitmaptest.c')
-rw-r--r--tests/virbitmaptest.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/virbitmaptest.c b/tests/virbitmaptest.c
index cafe865dde..9fec1fcc6e 100644
--- a/tests/virbitmaptest.c
+++ b/tests/virbitmaptest.c
@@ -27,7 +27,7 @@
#include "virbitmap.h"
static int
-test1(const void *data ATTRIBUTE_UNUSED)
+test1(const void *data G_GNUC_UNUSED)
{
virBitmapPtr bitmap;
int size;
@@ -82,7 +82,7 @@ testBit(virBitmapPtr bitmap,
}
static int
-test2(const void *data ATTRIBUTE_UNUSED)
+test2(const void *data G_GNUC_UNUSED)
{
const char *bitsString1 = "1-32,50,88-99,1021-1023";
char *bitsString2 = NULL;
@@ -145,7 +145,7 @@ test2(const void *data ATTRIBUTE_UNUSED)
}
static int
-test3(const void *data ATTRIBUTE_UNUSED)
+test3(const void *data G_GNUC_UNUSED)
{
virBitmapPtr bitmap = NULL;
int ret = -1;
@@ -173,7 +173,7 @@ test3(const void *data ATTRIBUTE_UNUSED)
/* test for virBitmapNextSetBit, virBitmapLastSetBit, virBitmapNextClearBit */
static int
-test4(const void *data ATTRIBUTE_UNUSED)
+test4(const void *data G_GNUC_UNUSED)
{
const char *bitsString = "0, 2-4, 6-10, 12, 14-18, 20, 22, 25";
int size = 40;
@@ -296,7 +296,7 @@ test4(const void *data ATTRIBUTE_UNUSED)
/* test for virBitmapNewData/ToData/DataFormat */
static int
-test5(const void *v ATTRIBUTE_UNUSED)
+test5(const void *v G_GNUC_UNUSED)
{
char data[] = {0x01, 0x02, 0x00, 0x00, 0x04};
unsigned char *data2 = NULL;
@@ -357,7 +357,7 @@ test5(const void *v ATTRIBUTE_UNUSED)
/* test for virBitmapFormat */
static int
-test6(const void *v ATTRIBUTE_UNUSED)
+test6(const void *v G_GNUC_UNUSED)
{
virBitmapPtr bitmap = NULL;
char *str = NULL;
@@ -439,7 +439,7 @@ test6(const void *v ATTRIBUTE_UNUSED)
}
static int
-test7(const void *v ATTRIBUTE_UNUSED)
+test7(const void *v G_GNUC_UNUSED)
{
virBitmapPtr bitmap;
size_t i;
@@ -479,7 +479,7 @@ test7(const void *v ATTRIBUTE_UNUSED)
}
static int
-test8(const void *v ATTRIBUTE_UNUSED)
+test8(const void *v G_GNUC_UNUSED)
{
virBitmapPtr bitmap = NULL;
char data[108] = {0x00,};
@@ -507,7 +507,7 @@ test8(const void *v ATTRIBUTE_UNUSED)
/* test out of bounds conditions on virBitmapParse */
static int
-test9(const void *opaque ATTRIBUTE_UNUSED)
+test9(const void *opaque G_GNUC_UNUSED)
{
int ret = -1;
virBitmapPtr bitmap = NULL;
@@ -538,7 +538,7 @@ test9(const void *opaque ATTRIBUTE_UNUSED)
}
static int
-test10(const void *opaque ATTRIBUTE_UNUSED)
+test10(const void *opaque G_GNUC_UNUSED)
{
int ret = -1;
virBitmapPtr b1 = NULL, b2 = NULL, b3 = NULL, b4 = NULL;
@@ -630,7 +630,7 @@ test11(const void *opaque)
/* test self-expanding bitmap APIs */
static int
-test12(const void *opaque ATTRIBUTE_UNUSED)
+test12(const void *opaque G_GNUC_UNUSED)
{
virBitmapPtr map = NULL;
int ret = -1;
@@ -672,7 +672,7 @@ test12(const void *opaque ATTRIBUTE_UNUSED)
/* virBitmap(New/To)String */
static int
-test13(const void *opaque ATTRIBUTE_UNUSED)
+test13(const void *opaque G_GNUC_UNUSED)
{
virBitmapPtr map = NULL;
const char *strings[] = { "1234feebee", "000c0fefe" };