From 279c373280e54388ede50abea9d11d5cdaa1d567 Mon Sep 17 00:00:00 2001
From: Campbell Barton <ideasman42@gmail.com>
Date: Thu, 13 Dec 2018 12:27:38 +1100
Subject: [PATCH] check_style_c: fix error updating function args

---
 check_source/check_style_c.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/check_source/check_style_c.py b/check_source/check_style_c.py
index ce6d0e1..8d00cf0 100755
--- a/check_source/check_style_c.py
+++ b/check_source/check_style_c.py
@@ -723,7 +723,7 @@ def blender_check_kw_switch(fn, index_kw_start, index_kw, index_kw_end):
         warning(fn, "E120", "switch brace missing", index_kw_start, index_kw_end)
 
 
-def blender_check_kw_sizeof(index_kw):
+def blender_check_kw_sizeof(fn, index_kw):
     if tokens[index_kw + 1].text != "(":
         warning(fn, "E121", "expected '%s('" % tokens[index_kw].text, index_kw, index_kw + 1)
 
@@ -1274,7 +1274,7 @@ def scan_source(fp, code, args, fn):
             elif tok.text == "else":
                 blender_check_kw_else(fn, i)
             elif tok.text == "sizeof":
-                blender_check_kw_sizeof(i)
+                blender_check_kw_sizeof(fn, i)
         elif tok.type == Token.Punctuation:
             if tok.text == ",":
                 blender_check_comma(fn, i)
-- 
GitLab