You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@avro.apache.org by "Martin Tzvetanov Grigorov (Jira)" <ji...@apache.org> on 2024/03/25 11:43:00 UTC

[jira] [Assigned] (AVRO-3960) Fix st ANYARGS warnings

     [ https://issues.apache.org/jira/browse/AVRO-3960?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Tzvetanov Grigorov reassigned AVRO-3960:
-----------------------------------------------

    Assignee: Sahil Kang

> 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
>            Assignee: Sahil Kang
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> 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)