Skip to content

Commit

Permalink
imap_connection: Silent warning on Clang version
Browse files Browse the repository at this point in the history
-Wcast-function-type has been introduced in Clang 13.
  • Loading branch information
Julien-Elie committed Feb 11, 2024
1 parent 3a6bf41 commit 3b9e318
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions innfeed/imap_connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -1329,7 +1329,7 @@ getsecret(sasl_conn_t *conn, void *context UNUSED, int id,
return SASL_OK;
}

# if __GNUC__ > 7
# if __GNUC__ > 7 || LLVM_VERSION_MAJOR > 12
# pragma GCC diagnostic ignored "-Wcast-function-type"
# endif

Expand All @@ -1342,7 +1342,7 @@ static sasl_callback_t saslcallbacks[] = {
{SASL_CB_LIST_END, NULL, NULL}
};

# if __GNUC__ > 7
# if __GNUC__ > 7 || LLVM_VERSION_MAJOR > 12
# pragma GCC diagnostic warning "-Wcast-function-type"
# endif

Expand Down

0 comments on commit 3b9e318

Please sign in to comment.