diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-09-20 15:50:34 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-09-20 15:50:34 +0000 |
commit | a7549a6a68672706dd0be3f65fe780f0632676fc (patch) | |
tree | 6f9a9953c11370b5c42ebb8583fb09221b709456 /gcc/go/gofrontend/statements.h | |
parent | 8c0fe223dd63dcc3fbaeb69691569ac3c5527c12 (diff) | |
download | gcc-a7549a6a68672706dd0be3f65fe780f0632676fc.tar.gz |
Emit compiler errors for unused values.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179008 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/go/gofrontend/statements.h')
-rw-r--r-- | gcc/go/gofrontend/statements.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/go/gofrontend/statements.h b/gcc/go/gofrontend/statements.h index a22090a5fe9..86b0f305148 100644 --- a/gcc/go/gofrontend/statements.h +++ b/gcc/go/gofrontend/statements.h @@ -178,9 +178,11 @@ class Statement Expression* expr, Type* type, source_location); - // Make an expression statement from an Expression. + // Make an expression statement from an Expression. IS_IGNORED is + // true if the value is being explicitly ignored, as in an + // assignment to _. static Statement* - make_statement(Expression*); + make_statement(Expression*, bool is_ignored); // Make a block statement from a Block. This is an embedded list of // statements which may also include variable definitions. |