[PATCH][pushed] clang: fix -Wmisleading-indentation warning.

Martin Liška mliska@suse.cz
Fri Nov 13 13:04:59 GMT 2020


gcc/c-family/c-attribs.c:4698:5: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]

gcc/c-family/ChangeLog:

	* c-attribs.c (build_attr_access_from_parms): Format properly.
---
  gcc/c-family/c-attribs.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/c-family/c-attribs.c b/gcc/c-family/c-attribs.c
index f1680820ecd..1c7283e1270 100644
--- a/gcc/c-family/c-attribs.c
+++ b/gcc/c-family/c-attribs.c
@@ -4695,7 +4695,7 @@ build_attr_access_from_parms (tree parms, bool skip_voidptr)
  
    /* Attribute access takes a two or three arguments.  Wrap VBLIST in
       another list in case it has more nodes than would otherwise fit.  */
-    vblist = build_tree_list (NULL_TREE, vblist);
+  vblist = build_tree_list (NULL_TREE, vblist);
  
    /* Build a single attribute access with the string describing all
       array arguments and an optional list of any non-parameter VLA
-- 
2.29.2



More information about the Gcc-patches mailing list