Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Apr 2020 06:51:57 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 245658] sysutils/xen-guest-tools: clang 10: error: misleading indentation; statement is not part of the previous 'if'
Message-ID:  <bug-245658-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D245658

            Bug ID: 245658
           Summary: sysutils/xen-guest-tools: clang 10: error: misleading
                    indentation; statement is not part of the previous
                    'if'
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: dinoex@FreeBSD.org
          Reporter: Trond.Endrestol@ximalas.info
          Assignee: dinoex@FreeBSD.org
             Flags: maintainer-feedback?(dinoex@FreeBSD.org)

clang 10 complains and refuses to compile tools/libxl/libxlu_disk_l.c:

libxlu_disk_l.c:1256:13: error: misleading indentation; statement is not pa=
rt
of the previous 'if' [-Werror,-Wmisleading-indentation]
            if ( ! yyg->yy_state_buf )
            ^
libxlu_disk_l.c:1254:9: note: previous statement is here
        if ( ! yyg->yy_state_buf )
        ^
1 error generated.

The attached patch fixes the indentation and clang 10 is happy again.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-245658-7788>