diff options
author | Lee Millward <lmillward@gcc.gnu.org> | 2006-02-03 23:11:09 +0000 |
---|---|---|
committer | Lee Millward <lmillward@gcc.gnu.org> | 2006-02-03 23:11:09 +0000 |
commit | b323323f9b6324e9384b524e45ae0f4e406f9dc7 (patch) | |
tree | 5d08778d08f783d3ec1ddcdf874d0ebd56faa9b0 /gcc/cp/cvt.c | |
parent | 9b43c474f53803635b04c5b530f1ceddb13355f5 (diff) | |
download | gcc-b323323f9b6324e9384b524e45ae0f4e406f9dc7.tar.gz |
typeck.c (string_conv_p): Pass appropiate OPT_Wxxxx values when calling warning().
* typeck.c (string_conv_p): Pass appropiate
OPT_Wxxxx values when calling warning().
(build_array_ref, cxx_mark_addressable): Likewise.
(check_return_expr): Likewise.
* init.c (perform_member_init): Likewise.
(sort_mem_initializers, emit_mem_initializers): Likewise.
* class.c (check_field_decls): Likewise.
(warn_about_ambiguous_bases): Likewise.
* decl.c (pop_label, poplevel): Likewise.
(duplicate_decls, grok_op_properties): Likewise.
(start_preparsed_function, finish_function): Likewise.
* name-lookup.c (pushdecl_maybe_friend): Likewise.
(pushdecl_maybe_friend): Likewise.
* parser.c (cp_parser_warn_min_max): Likewise.
(cp_parser_cast_expression): Likewise.
* method.c (lazily_declare_fn): Likewise.
* cvt.c (convert_to_void): Likewise.
* mangle.c (finish_mangling): Likewise.
* cp-gimplify.c (gimplify_expr_stmt): Likewise
.
From-SVN: r110567
Diffstat (limited to 'gcc/cp/cvt.c')
-rw-r--r-- | gcc/cp/cvt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/cvt.c b/gcc/cp/cvt.c index 8bf2e193e80..ef121d2c3e9 100644 --- a/gcc/cp/cvt.c +++ b/gcc/cp/cvt.c @@ -918,7 +918,7 @@ convert_to_void (tree expr, const char *implicit) /* The middle end does not warn about expressions that have been explicitly cast to void, so we must do so here. */ if (!TREE_SIDE_EFFECTS (expr)) - warning (0, "%s has no effect", implicit); + warning (OPT_Wunused_value, "%s has no effect", implicit); else { tree e; @@ -950,7 +950,7 @@ convert_to_void (tree expr, const char *implicit) || code == PREINCREMENT_EXPR || code == POSTDECREMENT_EXPR || code == POSTINCREMENT_EXPR))) - warning (0, "value computed is not used"); + warning (OPT_Wunused_value, "value computed is not used"); } } expr = build1 (CONVERT_EXPR, void_type_node, expr); |