In the file attached:
------------------------------------------------------------------------------------------------------- $ cppcheck --enable=all testcppcheck.c Checking testcppcheck.c ... testcppcheck.c:5:14: style: The scope of the variable 'content_area' can be reduced. [variableScope] CtkWidget *content_area; ^ testcppcheck.c:6:14: style: The scope of the variable 'hbox' can be reduced. [variableScope] CtkWidget *hbox; ^ testcppcheck.c:7:14: style: The scope of the variable 'drawing_area' can be reduced. [variableScope] CtkWidget *drawing_area; ^ testcppcheck.c:8:14: style: The scope of the variable 'scrollbar' can be reduced. [variableScope] CtkWidget *scrollbar; ^ testcppcheck.c:9:18: style: The scope of the variable 'adjustment' can be reduced. [variableScope] CtkAdjustment *adjustment; ^ testcppcheck.c:2:0: style: The function 'create_scroll_test' is never used. [unusedFunction] ^ ---------------------------------------------------------------------------------------------------
There are more variables which can be reduced, 'geometry' and 'geometry_mask', but cppcheck doesn't show the warnings.
Log in to post a comment.
In the file attached:
There are more variables which can be reduced, 'geometry' and
'geometry_mask', but cppcheck doesn't show the warnings.