summaryrefslogtreecommitdiff
path: root/tools/gcc-plugins
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gcc-plugins')
-rw-r--r--tools/gcc-plugins/frr-format.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/gcc-plugins/frr-format.c b/tools/gcc-plugins/frr-format.c
index 963741e479..d9e38f62ca 100644
--- a/tools/gcc-plugins/frr-format.c
+++ b/tools/gcc-plugins/frr-format.c
@@ -2685,7 +2685,8 @@ tree type_normalize (tree type, tree *cousin, tree target = NULL)
{
while (1)
{
- if (TREE_CODE (type) == FUNCTION_TYPE || TREE_CODE (type) == POINTER_TYPE)
+ if (TREE_CODE (type) == FUNCTION_TYPE || TREE_CODE (type) == POINTER_TYPE
+ || TREE_CODE (type) == ARRAY_TYPE)
return type;
if (target)
/* Strip off any "const" etc. */