aboutsummaryrefslogtreecommitdiff
path: root/gcc/warning-control.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/warning-control.cc')
-rw-r--r--gcc/warning-control.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/warning-control.cc b/gcc/warning-control.cc
index f9808bf..fa39eca 100644
--- a/gcc/warning-control.cc
+++ b/gcc/warning-control.cc
@@ -206,7 +206,8 @@ void copy_warning (ToType to, FromType from)
gcc_assert (supp);
gcc_checking_assert (nowarn_map);
- nowarn_map->put (to_loc, *from_spec);
+ nowarn_spec_t tem = *from_spec;
+ nowarn_map->put (to_loc, tem);
}
else
{