===================================================================
@@ -4579,10 +4579,11 @@ c_common_truthvalue_conversion (location_t locatio
if (decl_with_nonnull_addr_p (inner))
{
/* Common Ada/Pascal programmer's mistake. */
- warning_at (location,
- OPT_Waddress,
- "the address of %qD will always evaluate as %<true%>",
- inner);
+ if (c_inhibit_evaluation_warnings == 0)
+ warning_at (location,
+ OPT_Waddress,
+ "the address of %qD will always evaluate as %<true%>",
+ inner);
return truthvalue_true_node;
}
break;