Sahil Kang created AVRO-3960:
--------------------------------

             Summary: Fix st ANYARGS warnings
                 Key: AVRO-3960
                 URL: https://issues.apache.org/jira/browse/AVRO-3960
             Project: Apache Avro
          Issue Type: Improvement
          Components: c
            Reporter: Sahil Kang


The use of [ANYARGS by 
st.h|https://github.com/apache/avro/blob/9c7e14d89f80f7bea9c4d67d3ae98b86b5cff166/lang/c/src/st.h#L23-L43]
 causes warnings such as the following:
{quote}avro/lang/c/src/st.c:240:13: warning: passing arguments to a function 
without a prototype is deprecated in all versions of C and is not
        supported in C2x [-Wdeprecated-non-prototype]
          hash_val = do_hash(key, table);
{quote}
 

The use of {{ANYARGS}} can be replaced with {{void*}} and appropriate casts



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to