diff options
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r-- | gcc/stor-layout.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index cffb81c..65d98f8 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -869,8 +869,7 @@ place_field (record_layout_info rli, tree field) /* No, we need to skip space before this field. Bump the cumulative size to multiple of field alignment. */ - if (warn_padded) - warning (0, "%Jpadding struct to align %qD", field, field); + warning (OPT_Wpadded, "%Jpadding struct to align %qD", field, field); /* If the alignment is still within offset_align, just align the bit position. */ |