aboutsummaryrefslogtreecommitdiff
path: root/gcc/diagnostic-spec.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/diagnostic-spec.cc')
-rw-r--r--gcc/diagnostic-spec.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/diagnostic-spec.cc b/gcc/diagnostic-spec.cc
index 4ae2501..b43ae63 100644
--- a/gcc/diagnostic-spec.cc
+++ b/gcc/diagnostic-spec.cc
@@ -72,9 +72,9 @@ nowarn_spec_t::nowarn_spec_t (opt_code opt)
case OPT_Wstrict_aliasing:
case OPT_Wunused:
case OPT_Wunused_function:
- case OPT_Wunused_but_set_variable:
+ case OPT_Wunused_but_set_variable_:
case OPT_Wunused_variable:
- case OPT_Wunused_but_set_parameter:
+ case OPT_Wunused_but_set_parameter_:
m_bits = NW_LEXICAL;
break;
@@ -153,7 +153,7 @@ suppress_warning_at (location_t loc, opt_code opt /* = all_warnings */,
const nowarn_spec_t optspec (supp ? opt : opt_code ());
- if (nowarn_spec_t *pspec = nowarn_map ? nowarn_map->get (loc) : NULL)
+ if (nowarn_spec_t *pspec = nowarn_map ? nowarn_map->get (loc) : nullptr)
{
if (supp)
{
@@ -210,7 +210,7 @@ copy_warning (location_t to, location_t from)
nowarn_spec_t *from_spec;
if (RESERVED_LOCATION_P (from))
- from_spec = NULL;
+ from_spec = nullptr;
else
from_spec = nowarn_map->get (from);
if (RESERVED_LOCATION_P (to))