aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-family/c-common.h
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2023-11-22 13:48:45 -0500
committerJason Merrill <jason@redhat.com>2023-12-13 15:34:13 -0500
commitff35f1d4daa37e74f7a68e87c1a6c180d9a91f10 (patch)
treec8de946b76750837c679ccbb40acf09d4c88920f /gcc/c-family/c-common.h
parentb7e4a4c626eeeb32c291d5bbbaa148c5081b6bfd (diff)
downloadgcc-ff35f1d4daa37e74f7a68e87c1a6c180d9a91f10.zip
gcc-ff35f1d4daa37e74f7a68e87c1a6c180d9a91f10.tar.gz
gcc-ff35f1d4daa37e74f7a68e87c1a6c180d9a91f10.tar.bz2
c-family: rename warn_for_address_or_pointer_of_packed_member
Following the last patch, let's rename the functions to reflect the change in behavior. gcc/c-family/ChangeLog: * c-warn.cc (check_address_or_pointer_of_packed_member): Rename to check_address_of_packed_member. (check_and_warn_address_or_pointer_of_packed_member): Rename to check_and_warn_address_of_packed_member. (warn_for_address_or_pointer_of_packed_member): Rename to warn_for_address_of_packed_member. * c-common.h: Adjust. gcc/c/ChangeLog: * c-typeck.cc (convert_for_assignment): Adjust call to warn_for_address_of_packed_member. gcc/cp/ChangeLog: * call.cc (convert_for_arg_passing) * typeck.cc (convert_for_assignment): Adjust call to warn_for_address_of_packed_member.
Diffstat (limited to 'gcc/c-family/c-common.h')
-rw-r--r--gcc/c-family/c-common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-family/c-common.h b/gcc/c-family/c-common.h
index 6e7fc1b..b8bd56c 100644
--- a/gcc/c-family/c-common.h
+++ b/gcc/c-family/c-common.h
@@ -1572,7 +1572,7 @@ extern void warnings_for_convert_and_check (location_t, tree, tree, tree);
extern void c_do_switch_warnings (splay_tree, location_t, tree, tree, bool);
extern void warn_for_omitted_condop (location_t, tree);
extern bool warn_for_restrict (unsigned, tree *, unsigned);
-extern void warn_for_address_or_pointer_of_packed_member (tree, tree);
+extern void warn_for_address_of_packed_member (tree, tree);
extern void warn_parm_array_mismatch (location_t, tree, tree);
extern void maybe_warn_sizeof_array_div (location_t, tree, tree, tree, tree);
extern void do_warn_array_compare (location_t, tree_code, tree, tree);