[Bug 245658] sysutils/xen-guest-tools: clang 10: error: misleading indentation; statement is not part of the previous 'if'

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Apr 16 06:51:58 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245658

            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 at FreeBSD.org
          Reporter: Trond.Endrestol at ximalas.info
          Assignee: dinoex at FreeBSD.org
             Flags: maintainer-feedback?(dinoex at 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 part
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.

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


More information about the freebsd-ports-bugs mailing list