Commit aabef2de by Marek Polacek Committed by Marek Polacek

* c-typeck.c (convert_for_assignment): Improve commentary.

From-SVN: r228327
parent 228ae470
2015-10-01 Marek Polacek <polacek@redhat.com>
* c-typeck.c (convert_for_assignment): Improve commentary.
2015-09-30 Marek Polacek <polacek@redhat.com> 2015-09-30 Marek Polacek <polacek@redhat.com>
PR c/67730 PR c/67730
......
...@@ -5690,8 +5690,18 @@ maybe_warn_string_init (location_t loc, tree type, struct c_expr expr) ...@@ -5690,8 +5690,18 @@ maybe_warn_string_init (location_t loc, tree type, struct c_expr expr)
ERRTYPE says whether it is argument passing, assignment, ERRTYPE says whether it is argument passing, assignment,
initialization or return. initialization or return.
LOCATION is the location of the assignment, EXPR_LOC is the location of In the following example, '~' denotes where EXPR_LOC and '^' where
the RHS or, for a function, location of an argument. LOCATION point to:
f (var); [ic_argpass]
^ ~~~
x = var; [ic_assign]
^ ~~~;
int x = var; [ic_init]
^^^
return x; [ic_return]
^
FUNCTION is a tree for the function being called. FUNCTION is a tree for the function being called.
PARMNUM is the number of the argument, for printing in error messages. */ PARMNUM is the number of the argument, for printing in error messages. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment