summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2023-03-30 14:18:41 -0400
committerFlorian Festi <ffesti@redhat.com>2023-04-03 15:13:35 +0200
commit8310b34a38b419b0ae6a7669805754f11e472c1c (patch)
tree2ec9478f920f03206662d62128c3e87099e624f2
parentcd7736833e36f6088dd49fcbcc3d9e6a7aa6e954 (diff)
downloadrpm-8310b34a38b419b0ae6a7669805754f11e472c1c.tar.gz
Bring RPM_MASK_RETURN_TYPE in to the signed int range
Set to 0xffff0000 (or 4294901760), I was getting: error: ISO C restricts enumerator values to range of 'int' (4294901760 is too large) [-Werror,-Wpedantic] This happened not when building rpm itself, but when building rpminspect which links with librpm and uses rpm's headers. The system in question was FreeBSD 13.1 which has clang 13.0.0. It is a corner case, but I like testing things on non-Linux platforms as often as I can to find errors like this. With this change, the rpm test suite passes for me. Signed-off-by: David Cantrell <dcantrell@redhat.com>
-rw-r--r--include/rpm/rpmtag.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rpm/rpmtag.h b/include/rpm/rpmtag.h
index 8c9186049..e977be52a 100644
--- a/include/rpm/rpmtag.h
+++ b/include/rpm/rpmtag.h
@@ -486,7 +486,7 @@ enum rpmTagReturnType_e {
RPM_SCALAR_RETURN_TYPE = 0x00010000,
RPM_ARRAY_RETURN_TYPE = 0x00020000,
RPM_MAPPING_RETURN_TYPE = 0x00040000,
- RPM_MASK_RETURN_TYPE = 0xffff0000
+ RPM_MASK_RETURN_TYPE = 0xffff000
};
typedef rpmFlags rpmTagReturnType;