commit 7f5b55c8f25bf341296d95db83d1ad9f8c26a459
Author:     Laslo Hunhold <[email protected]>
AuthorDate: Fri Jan 7 18:34:26 2022 +0100
Commit:     Laslo Hunhold <[email protected]>
CommitDate: Fri Jan 7 18:34:26 2022 +0100

    Silence a few warnings and make it clear that speclen is at most 255
    
    This gives a clearer indication we are working with small enum-values
    rather than true offsets.
    
    Signed-off-by: Laslo Hunhold <[email protected]>

diff --git a/gen/properties.c b/gen/properties.c
index 5825148..df30d7b 100644
--- a/gen/properties.c
+++ b/gen/properties.c
@@ -25,7 +25,7 @@ struct property_spec {
 struct property_payload {
        struct properties *prop;
        const struct property_spec *spec;
-       size_t speclen;
+       uint_least8_t speclen;
 };
 
 static const struct property_spec char_break_property[] = {
@@ -113,7 +113,7 @@ break_property_callback(char *file, char **field, size_t 
nfields,
        /* prop always has the length 0x110000 */
        struct property_payload *p = (struct property_payload *)payload;
        struct range r;
-       size_t i;
+       uint_least8_t i;
        uint_least32_t cp;
 
        (void)comment;
@@ -161,7 +161,7 @@ struct compressed_properties {
        size_t datalen;
 };
 
-void
+static void
 compress_properties(const struct properties *prop,
                     struct compressed_properties *comp)
 {

Reply via email to