align.h (align_flags): Use member initialization.

gcc/ChangeLog:

	* align.h (align_flags): Use member initialization.

From-SVN: r262892
This commit is contained in:
Martin Sebor 2018-07-19 22:12:06 +00:00 committed by Martin Sebor
parent 4df3629eb7
commit a34ab13587
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2018-07-19 Martin Sebor <msebor@redhat.com>
* align.h (align_flags): Use member initialization.
2018-07-19 David Malcolm <dmalcolm@redhat.com>
* Makefile.in (OBJS): Add optinfo.o.

View File

@ -50,8 +50,10 @@ struct align_flags
/* Default constructor. */
align_flags (int log0 = 0, int maxskip0 = 0, int log1 = 0, int maxskip1 = 0)
{
levels[0] = {log0, maxskip0};
levels[1] = {log1, maxskip1};
levels[0].log = log0;
levels[0].maxskip = maxskip0;
levels[1].log = log1;
levels[1].maxskip = maxskip1;
normalize ();
}