2026-05-02 10:24 ftp://ftp.de.debian.org/debian/pool/main/g/gtk4-layer-shell/gtk4-layer-shell_1.3.0.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j2 platform: Linux-6.12.85+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.70 compiler: g++ (20250906) 15.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 190 187 elapsed-time: 1.0 0.9 head-timing-info: old-timing-info: head results: gtk4-layer-shell-1.3.0/examples/demo/anchor-control.c:27:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable edge [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/examples/demo/anchor-control.c:46:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_LAYER_SHELL_EDGE_LEFT [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/examples/demo/gtk-layer-demo.c:101:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_LAYER_SHELL_LAYER_OVERLAY [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/examples/demo/gtk-layer-demo.c:124:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_LAYER_SHELL_EDGE_ENTRY_NUMBER [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/examples/demo/gtk-layer-demo.c:159:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_LAYER_SHELL_KEYBOARD_MODE_EXCLUSIVE [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/examples/demo/gtk-layer-demo.c:184:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_LAYER_SHELL_EDGE_ENTRY_NUMBER [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/examples/demo/gtk-layer-demo.c:246:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_LAYER_SHELL_EDGE_LEFT [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/examples/demo/gtk-layer-demo.c:298:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_LAYER_SHELL_EDGE_ENTRY_NUMBER [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/examples/demo/gtk-layer-demo.c:386:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_INT [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/examples/demo/gtk-layer-demo.c:96:45: style:inconclusive: Function 'layer_option_callback' argument 1 names different: declaration 'option_name' definition '_option_name'. [funcArgNamesDifferent] gtk4-layer-shell-1.3.0/examples/demo/gtk-layer-demo.c:24:45: note: Function 'layer_option_callback' argument 1 names different: declaration 'option_name' definition '_option_name'. gtk4-layer-shell-1.3.0/examples/demo/gtk-layer-demo.c:96:45: note: Function 'layer_option_callback' argument 1 names different: declaration 'option_name' definition '_option_name'. gtk4-layer-shell-1.3.0/examples/demo/gtk-layer-demo.c:96:85: style:inconclusive: Function 'layer_option_callback' argument 3 names different: declaration 'data' definition '_data'. [funcArgNamesDifferent] gtk4-layer-shell-1.3.0/examples/demo/gtk-layer-demo.c:24:84: note: Function 'layer_option_callback' argument 3 names different: declaration 'data' definition '_data'. gtk4-layer-shell-1.3.0/examples/demo/gtk-layer-demo.c:96:85: note: Function 'layer_option_callback' argument 3 names different: declaration 'data' definition '_data'. gtk4-layer-shell-1.3.0/examples/demo/gtk-layer-demo.c:120:46: style:inconclusive: Function 'anchor_option_callback' argument 1 names different: declaration 'option_name' definition '_option_name'. [funcArgNamesDifferent] gtk4-layer-shell-1.3.0/examples/demo/gtk-layer-demo.c:25:46: note: Function 'anchor_option_callback' argument 1 names different: declaration 'option_name' definition '_option_name'. gtk4-layer-shell-1.3.0/examples/demo/gtk-layer-demo.c:120:46: note: Function 'anchor_option_callback' argument 1 names different: declaration 'option_name' definition '_option_name'. gtk4-layer-shell-1.3.0/examples/demo/gtk-layer-demo.c:120:86: style:inconclusive: Function 'anchor_option_callback' argument 3 names different: declaration 'data' definition '_data'. [funcArgNamesDifferent] gtk4-layer-shell-1.3.0/examples/demo/gtk-layer-demo.c:25:85: note: Function 'anchor_option_callback' argument 3 names different: declaration 'data' definition '_data'. gtk4-layer-shell-1.3.0/examples/demo/gtk-layer-demo.c:120:86: note: Function 'anchor_option_callback' argument 3 names different: declaration 'data' definition '_data'. gtk4-layer-shell-1.3.0/examples/demo/gtk-layer-demo.c:153:48: style:inconclusive: Function 'keyboard_option_callback' argument 1 names different: declaration 'option_name' definition '_option_name'. [funcArgNamesDifferent] gtk4-layer-shell-1.3.0/examples/demo/gtk-layer-demo.c:26:48: note: Function 'keyboard_option_callback' argument 1 names different: declaration 'option_name' definition '_option_name'. gtk4-layer-shell-1.3.0/examples/demo/gtk-layer-demo.c:153:48: note: Function 'keyboard_option_callback' argument 1 names different: declaration 'option_name' definition '_option_name'. gtk4-layer-shell-1.3.0/examples/demo/gtk-layer-demo.c:153:88: style:inconclusive: Function 'keyboard_option_callback' argument 3 names different: declaration 'data' definition '_data'. [funcArgNamesDifferent] gtk4-layer-shell-1.3.0/examples/demo/gtk-layer-demo.c:26:87: note: Function 'keyboard_option_callback' argument 3 names different: declaration 'data' definition '_data'. gtk4-layer-shell-1.3.0/examples/demo/gtk-layer-demo.c:153:88: note: Function 'keyboard_option_callback' argument 3 names different: declaration 'data' definition '_data'. gtk4-layer-shell-1.3.0/examples/demo/gtk-layer-demo.c:180:46: style:inconclusive: Function 'margin_option_callback' argument 1 names different: declaration 'option_name' definition '_option_name'. [funcArgNamesDifferent] gtk4-layer-shell-1.3.0/examples/demo/gtk-layer-demo.c:27:46: note: Function 'margin_option_callback' argument 1 names different: declaration 'option_name' definition '_option_name'. gtk4-layer-shell-1.3.0/examples/demo/gtk-layer-demo.c:180:46: note: Function 'margin_option_callback' argument 1 names different: declaration 'option_name' definition '_option_name'. gtk4-layer-shell-1.3.0/examples/demo/gtk-layer-demo.c:180:86: style:inconclusive: Function 'margin_option_callback' argument 3 names different: declaration 'data' definition '_data'. [funcArgNamesDifferent] gtk4-layer-shell-1.3.0/examples/demo/gtk-layer-demo.c:27:85: note: Function 'margin_option_callback' argument 3 names different: declaration 'data' definition '_data'. gtk4-layer-shell-1.3.0/examples/demo/gtk-layer-demo.c:180:86: note: Function 'margin_option_callback' argument 3 names different: declaration 'data' definition '_data'. gtk4-layer-shell-1.3.0/examples/demo/margin-control.c:40:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable edge [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/examples/demo/margin-control.c:54:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_LAYER_SHELL_EDGE_LEFT [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/examples/demo/mscl-toggles.c:42:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ALIGN_END [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/examples/session-lock.c:40:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ALIGN_CENTER [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/examples/session-lock.c:84:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ALIGN_START [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/examples/session-lock.c:120:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_APPLICATION_DEFAULT_FLAGS [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/examples/simple-example.c:14:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_LAYER_SHELL_LAYER_TOP [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/examples/simple-example.c:49:91: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_APPLICATION_DEFAULT_FLAGS [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/gtk4-layer-shell.c:23:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_LAYER_SHELL_MAJOR [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/gtk4-layer-shell.c:28:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_LAYER_SHELL_MINOR [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/gtk4-layer-shell.c:33:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_LAYER_SHELL_MICRO [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/gtk4-layer-shell.c:230:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_LAYER_SHELL_LAYER_ENTRY_NUMBER [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/gtk4-layer-shell.c:240:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_LAYER_SHELL_LAYER_TOP [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/gtk4-layer-shell.c:372:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_LAYER_SHELL_KEYBOARD_MODE_ENTRY_NUMBER [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/gtk4-layer-shell.c:382:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_LAYER_SHELL_KEYBOARD_MODE_NONE [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/gtk4-session-lock.c:56:104: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_TYPE_MONITOR [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/gtk4-layer-shell.c:106:24: style: Variable 'wl_surface' can be declared as pointer to const [constVariablePointer] gtk4-layer-shell-1.3.0/src/gtk4-layer-shell.c:245:63: style: Parameter 'self' can be declared as pointer to const. However it seems that 'gtk_layer_surface_monitor_invalidated' is a callback function, if 'self' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtk4-layer-shell-1.3.0/src/gtk4-layer-shell.c:274:9: note: You might need to cast the function pointer here gtk4-layer-shell-1.3.0/src/gtk4-layer-shell.c:245:63: note: Parameter 'self' can be declared as pointer to const gtk4-layer-shell-1.3.0/src/gtk4-layer-shell.c:281:33: style: Variable 'layer_surface' can be declared as pointer to const [constVariablePointer] gtk4-layer-shell-1.3.0/src/gtk4-session-lock.c:18:41: style: Variable 'global' can be declared as pointer to const [constVariablePointer] gtk4-layer-shell-1.3.0/src/gtk4-session-lock.c:54:79: style: Parameter 'cclass' can be declared as pointer to const [constParameterPointer] gtk4-layer-shell-1.3.0/src/gtk4-session-lock.c:202:70: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] gtk4-layer-shell-1.3.0/src/gtk4-session-lock.c:232:24: style: Variable 'wl_surface' can be declared as pointer to const [constVariablePointer] gtk4-layer-shell-1.3.0/src/layer-shell-preload.c:15:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/layer-shell-preload.c:47:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/layer-shell-preload.c:58:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/layer-shell-preload.c:74:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZWLR_LAYER_SURFACE_V1_KEYBOARD_INTERACTIVITY_NONE [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/layer-shell-preload.c:88:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable width [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/layer-shell-preload.c:100:6: warning: If memory allocation fails, then there is a possible null pointer dereference: layer_surface [nullPointerOutOfMemory] gtk4-layer-shell-1.3.0/src/layer-shell-preload.c:99:51: note: Assuming allocation function fails gtk4-layer-shell-1.3.0/src/layer-shell-preload.c:99:51: note: Assignment 'layer_surface=malloc(sizeof(struct layer_surface_t))', assigned value is 0 gtk4-layer-shell-1.3.0/src/layer-shell-preload.c:100:6: note: Null pointer dereference gtk4-layer-shell-1.3.0/src/layer-shell-preload.c:101:5: warning: If memory allocation fails, then there is a possible null pointer dereference: layer_surface [nullPointerOutOfMemory] gtk4-layer-shell-1.3.0/src/layer-shell-preload.c:99:51: note: Assuming allocation function fails gtk4-layer-shell-1.3.0/src/layer-shell-preload.c:99:51: note: Assignment 'layer_surface=malloc(sizeof(struct layer_surface_t))', assigned value is 0 gtk4-layer-shell-1.3.0/src/layer-shell-preload.c:101:5: note: Null pointer dereference gtk4-layer-shell-1.3.0/src/layer-surface.c:141:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZWLR_LAYER_SURFACE_V1_KEYBOARD_INTERACTIVITY_ON_DEMAND [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/layer-surface.c:160:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/layer-surface.c:263:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZWLR_LAYER_SURFACE_V1_KEYBOARD_INTERACTIVITY_NONE [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/layer-surface.c:306:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZWLR_LAYER_SURFACE_V1_SET_LAYER_SINCE_VERSION [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/layer-surface.c:408:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable o [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/layer-surface.c:436:75: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable o [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/libwayland-shim.c:55:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTLD_NEXT [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/libwayland-shim.c:71:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable interface_name [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/libwayland-shim.c:141:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable signature [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/libwayland-shim.c:207:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/libwayland-shim.c:278:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WL_MARSHAL_FLAG_DESTROY [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/libwayland-shim.c:322:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/libwayland-shim.c:321:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gtk4-layer-shell-1.3.0/src/libwayland-shim.c:67:11: style:inconclusive: Function 'libwayland_shim_install_request_hook' argument 4 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] gtk4-layer-shell-1.3.0/src/libwayland-shim.c:87:44: style:inconclusive: Function 'libwayland_shim_create_client_proxy' argument 5 names different: declaration '' definition 'destroy'. [funcArgNamesDifferentUnnamed] gtk4-layer-shell-1.3.0/src/libwayland-shim.c:88:11: style:inconclusive: Function 'libwayland_shim_create_client_proxy' argument 6 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] gtk4-layer-shell-1.3.0/src/libwayland-shim.c:114:75: style: Parameter 'expected_handler' can be declared as pointer to const [constParameterPointer] gtk4-layer-shell-1.3.0/src/libwayland-shim.c:116:31: style: Variable 'wrapper' can be declared as pointer to const [constVariablePointer] gtk4-layer-shell-1.3.0/src/libwayland-shim.c:127:71: style: Parameter 'proxy' can be declared as pointer to const [constParameterPointer] gtk4-layer-shell-1.3.0/src/libwayland-shim.c:131:73: style: Parameter 'proxy' can be declared as pointer to const [constParameterPointer] gtk4-layer-shell-1.3.0/src/libwayland-shim.c:139:24: style: Parameter 'args' can be declared as pointer to const [constParameterPointer] gtk4-layer-shell-1.3.0/src/libwayland-shim.c:315:76: style: Parameter 'proxy' can be declared as pointer to const [constParameterPointer] gtk4-layer-shell-1.3.0/src/libwayland-shim.c:319:80: style: Parameter 'proxy' can be declared as pointer to const [constParameterPointer] gtk4-layer-shell-1.3.0/src/libwayland-shim.c:334:60: style: Parameter 'proxy' can be declared as pointer to const [constParameterPointer] gtk4-layer-shell-1.3.0/src/layer-surface.c:144:17: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gtk4-layer-shell-1.3.0/src/layer-surface.c:105:9: error: Null pointer dereference: (struct xdg_toplevel_listener*)NULL [nullPointer] gtk4-layer-shell-1.3.0/src/layer-surface.c:293:65: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] gtk4-layer-shell-1.3.0/src/lock-surface.c:84:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/lock-surface.c:120:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable o [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/lock-surface.c:158:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable o [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/lock-surface.c:158:23: style: Variable 'buffer' can be declared as pointer to const [constVariablePointer] gtk4-layer-shell-1.3.0/src/lock-surface.c:159:24: style: Variable 'wl_surface' can be declared as pointer to const [constVariablePointer] gtk4-layer-shell-1.3.0/src/lock-surface.c:186:24: style: Variable 'wl_surface' can be declared as pointer to const [constVariablePointer] gtk4-layer-shell-1.3.0/src/lock-surface.c:211:24: style: Variable 'wl_surface' can be declared as pointer to const [constVariablePointer] gtk4-layer-shell-1.3.0/src/registry.c:28:82: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/registry.c:60:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/registry.c:82:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/registry.c:93:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/session-lock.c:44:99: style:inconclusive: Function 'session_lock_lock' argument 3 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] gtk4-layer-shell-1.3.0/src/stolen-from-libwayland.c:21:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/stolen-from-libwayland.c:66:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable signature [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/stolen-from-libwayland.c:82:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable signature [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/stolen-from-libwayland.c:110:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable signature [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/stolen-from-libwayland.c:131:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable signature [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/stubbed-surface.c:27:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/stubbed-surface.c:53:5: warning: If memory allocation fails, then there is a possible null pointer dereference: self [nullPointerOutOfMemory] gtk4-layer-shell-1.3.0/src/stubbed-surface.c:52:44: note: Assuming allocation function fails gtk4-layer-shell-1.3.0/src/stubbed-surface.c:52:44: note: Assignment 'self=calloc(1,sizeof(struct stubbed_surface_t))', assigned value is 0 gtk4-layer-shell-1.3.0/src/stubbed-surface.c:53:5: note: Null pointer dereference gtk4-layer-shell-1.3.0/src/stubbed-surface.c:54:5: warning: If memory allocation fails, then there is a possible null pointer dereference: self [nullPointerOutOfMemory] gtk4-layer-shell-1.3.0/src/stubbed-surface.c:52:44: note: Assuming allocation function fails gtk4-layer-shell-1.3.0/src/stubbed-surface.c:52:44: note: Assignment 'self=calloc(1,sizeof(struct stubbed_surface_t))', assigned value is 0 gtk4-layer-shell-1.3.0/src/stubbed-surface.c:54:5: note: Null pointer dereference gtk4-layer-shell-1.3.0/src/xdg-surface-server.c:67:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xdg_toplevel_interface [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/xdg-surface-server.c:126:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xdg_surface_interface [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/xdg-surface-server.c:148:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XDG_TOPLEVEL_STATE_ACTIVATED [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/src/xdg-surface-server.c:155:9: error: Null pointer dereference: (struct xdg_toplevel_listener*)NULL [nullPointer] gtk4-layer-shell-1.3.0/src/xdg-surface-server.c:167:9: error: Null pointer dereference: (struct xdg_popup_listener*)NULL [nullPointer] gtk4-layer-shell-1.3.0/src/xdg-surface-server.c:177:9: error: Null pointer dereference: (struct xdg_surface_listener*)NULL [nullPointer] gtk4-layer-shell-1.3.0/test/integration-test-common/integration-test-common.c:35:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/test/integration-test-common/integration-test-common.c:74:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/test/integration-test-common/integration-test-common.c:181:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_LAYER_SHELL_EDGE_BOTTOM [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/test/integration-test-common/integration-test-common.c:192:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/test/layer-tests/test-adapts-to-screen-size.c:6:52: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/integration-test-common/integration-test-common.c:123:42: style:inconclusive: Function 'popup_widget_toggle_open' argument 1 names different: declaration 'widget' definition 'popup'. [funcArgNamesDifferent] gtk4-layer-shell-1.3.0/test/integration-test-common/integration-test-common.h:33:42: note: Function 'popup_widget_toggle_open' argument 1 names different: declaration 'widget' definition 'popup'. gtk4-layer-shell-1.3.0/test/integration-test-common/integration-test-common.c:123:42: note: Function 'popup_widget_toggle_open' argument 1 names different: declaration 'widget' definition 'popup'. gtk4-layer-shell-1.3.0/test/layer-tests/test-auto-exclusive-zone-no-margin.c:54:15: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-auto-exclusive-zone-weird-bool-values.c:24:15: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-auto-exclusive-zone-with-margin.c:27:15: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-close-layer-surface.c:19:15: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-configure-delay.c:28:15: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-create-xdg-toplevel.c:35:15: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-creation-properties.c:15:59: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-exclusive-zone-below-negative-1.c:18:15: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-get-auto-exclusive-zone.c:33:15: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-get-explicit-exclusive-zone.c:21:15: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-get-keyboard-mode.c:18:15: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-get-layer.c:20:15: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-get-margin.c:38:15: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-get-monitor.c:21:15: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-get-namespace-custom-namespace.c:15:15: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-get-namespace-default.c:14:15: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-get-namespace-on-non-layer-window.c:12:15: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-hide-and-show.c:26:15: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-init-after-window-created.c:21:15: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-is-layer-window.c:26:15: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-is-supported-true.c:9:15: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-layer-surface-click-activated-popup.c:18:20: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-layer-surface-not-created.c:6:22: error: syntax error: ( . get_layer_surface [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-layer-surface-popup.c:18:20: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-monitor-removed.c:8:20: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-multi-anchors.c:52:15: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-only-monitor-removed.c:6:20: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-popup-configure-delay.c:22:20: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-respect-close.c:7:20: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-set-anchor-normalizes-booleans.c:21:15: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-set-default-size.c:6:52: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-set-keyboard-mode.c:27:15: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-set-layer.c:40:15: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-set-margin.c:6:54: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-set-monitor.c:6:20: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-single-anchors.c:45:15: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-uses-widget-size.c:7:20: error: syntax error: ( . create_buffer [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-xdg-toplevel-popup-with-layer-surface.c:24:20: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/layer-tests/test-xdg-toplevel-popup-without-layer-surface.c:20:20: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/lock-tests/test-async-failure.c:68:15: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/lock-tests/test-can-lock-display.c:31:15: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/lock-tests/test-can-relock-display.c:79:15: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/lock-tests/test-can-reuse-lock-window.c:65:15: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/lock-tests/test-immediate-failure.c:40:15: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/lock-tests/test-lock-can-be-created-without-locking.c:21:15: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/lock-tests/test-monitors-changed-after-unlocked.c:9:59: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/lock-tests/test-monitors-changed-while-locked.c:9:59: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/lock-tests/test-multiple-monitors.c:9:59: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/lock-tests/test-popup-on-lock-screen.c:44:15: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/lock-tests/test-works-without-monitor-signal.c:32:15: error: syntax error [syntaxError] gtk4-layer-shell-1.3.0/test/mock-server/mock-server.c:42:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/test/mock-server/mock-server.c:66:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable n [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/test/mock-server/mock-server.c:131:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/test/mock-server/mock-server.c:182:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/test/mock-server/mock-server.c:208:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/test/mock-server/mock-server.c:44:13: warning: If memory allocation fails, then there is a possible null pointer dereference: override [nullPointerOutOfMemory] gtk4-layer-shell-1.3.0/test/mock-server/mock-server.c:43:57: note: Assuming allocation function fails gtk4-layer-shell-1.3.0/test/mock-server/mock-server.c:43:57: note: Assignment 'override=calloc(1,sizeof(struct request_override_t))', assigned value is 0 gtk4-layer-shell-1.3.0/test/mock-server/mock-server.c:44:13: note: Null pointer dereference gtk4-layer-shell-1.3.0/test/mock-server/mock-server.c:45:13: warning: If memory allocation fails, then there is a possible null pointer dereference: override [nullPointerOutOfMemory] gtk4-layer-shell-1.3.0/test/mock-server/mock-server.c:43:57: note: Assuming allocation function fails gtk4-layer-shell-1.3.0/test/mock-server/mock-server.c:43:57: note: Assignment 'override=calloc(1,sizeof(struct request_override_t))', assigned value is 0 gtk4-layer-shell-1.3.0/test/mock-server/mock-server.c:45:13: note: Null pointer dereference gtk4-layer-shell-1.3.0/test/mock-server/overrides.c:165:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZWLR_LAYER_SURFACE_V1_ANCHOR_LEFT [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/test/mock-server/overrides.c:220:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable wl_buffer_interface [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/test/mock-server/overrides.c:296:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable wl_seat_interface [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/test/mock-server/overrides.c:305:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable wl_output_interface [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/test/mock-server/overrides.c:319:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable wl_surface_interface [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/test/mock-server/overrides.c:338:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/test/mock-server/overrides.c:348:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/test/mock-server/overrides.c:370:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xdg_surface_interface [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/test/mock-server/overrides.c:385:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable wl_seat_interface [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/test/mock-server/overrides.c:402:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/test/mock-server/overrides.c:409:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/test/mock-server/overrides.c:418:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xdg_popup_interface [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/test/mock-server/overrides.c:426:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable wl_surface_interface [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/test/mock-server/overrides.c:442:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/test/mock-server/overrides.c:477:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable wl_surface_interface [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/test/mock-server/overrides.c:489:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/test/mock-server/overrides.c:504:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable global [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/test/mock-server/overrides.c:513:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable wl_surface_interface [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/test/mock-server/overrides.c:558:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/test/mock-server/overrides.c:571:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable client [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/test/mock-server/overrides.c:601:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gtk4-layer-shell-1.3.0/test/mock-server/overrides.c:597:17: warning:inconclusive: Either the condition 'str' is redundant or there is possible null pointer dereference: str. [nullPointerRedundantCheck] gtk4-layer-shell-1.3.0/test/mock-server/overrides.c:585:9: note: Assuming that condition 'str' is not redundant gtk4-layer-shell-1.3.0/test/mock-server/overrides.c:597:17: note: Null pointer dereference gtk4-layer-shell-1.3.0/test/mock-server/overrides.c:68:62: style: Parameter 'resource' can be declared as pointer to const [constParameterPointer] gtk4-layer-shell-1.3.0/test/mock-server/overrides.c:94:64: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] gtk4-layer-shell-1.3.0/test/mock-server/overrides.c:124:28: style: Variable 'popup' can be declared as pointer to const [constVariablePointer] gtk4-layer-shell-1.3.0/test/mock-server/overrides.c:463:1: style: Parameter 'ext_session_lock_v1' can be declared as pointer to const. However it seems that 'ext_session_lock_v1_destroy' is a callback function, if 'ext_session_lock_v1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtk4-layer-shell-1.3.0/test/mock-server/overrides.c:535:5: note: You might need to cast the function pointer here gtk4-layer-shell-1.3.0/test/mock-server/overrides.c:463:1: note: Parameter 'ext_session_lock_v1' can be declared as pointer to const gtk4-layer-shell-1.3.0/test/mock-server/overrides.c:469:1: style: Parameter 'ext_session_lock_v1' can be declared as pointer to const. However it seems that 'ext_session_lock_v1_unlock_and_destroy' is a callback function, if 'ext_session_lock_v1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtk4-layer-shell-1.3.0/test/mock-server/overrides.c:536:5: note: You might need to cast the function pointer here gtk4-layer-shell-1.3.0/test/mock-server/overrides.c:469:1: note: Parameter 'ext_session_lock_v1' can be declared as pointer to const diff: 2.20.0 gtk4-layer-shell-1.3.0/src/layer-surface.c:253:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable window_geometry_set [valueFlowBailoutIncompleteVar] head gtk4-layer-shell-1.3.0/src/layer-surface.c:263:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZWLR_LAYER_SURFACE_V1_KEYBOARD_INTERACTIVITY_NONE [valueFlowBailoutIncompleteVar] head gtk4-layer-shell-1.3.0/src/libwayland-shim.c:67:11: style:inconclusive: Function 'libwayland_shim_install_request_hook' argument 4 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] head gtk4-layer-shell-1.3.0/src/libwayland-shim.c:87:44: style:inconclusive: Function 'libwayland_shim_create_client_proxy' argument 5 names different: declaration '' definition 'destroy'. [funcArgNamesDifferentUnnamed] head gtk4-layer-shell-1.3.0/src/libwayland-shim.c:88:11: style:inconclusive: Function 'libwayland_shim_create_client_proxy' argument 6 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] 2.20.0 gtk4-layer-shell-1.3.0/src/lock-surface.c:68:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable configure_acked [valueFlowBailoutIncompleteVar] head gtk4-layer-shell-1.3.0/src/session-lock.c:44:99: style:inconclusive: Function 'session_lock_lock' argument 3 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] DONE