2025-08-29 22:33 ftp://ftp.de.debian.org/debian/pool/main/b/bitlbee-facebook/bitlbee-facebook_1.2.2.orig.tar.xz 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 -j4 platform: Linux-6.12.41+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 478055e (2025-08-29 18:53:24 +0200) count: 2 86 elapsed-time: 0.1 0.4 head-timing-info: old-timing-info: head results: bitlbee-facebook-1.2.2/facebook/facebook-glib.h:26:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] bitlbee-facebook-1.2.2/facebook/facebook-glib.h:26:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] diff: 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-api.c:106:5: error: There is an unknown macro here somewhere. Configuration is required. If PACKAGE_VERSION is a macro then please configure it. [unknownMacro] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-data.c:118:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_VALUE_INIT [valueFlowBailoutIncompleteVar] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-data.c:192:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_VALUE_INIT [valueFlowBailoutIncompleteVar] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-data.c:290:40: style:inconclusive: Function 'fb_data_get_thread' argument 2 names different: declaration 'index' definition 'n'. [funcArgNamesDifferent] bitlbee-facebook-1.2.2/facebook/facebook-data.h:170:40: note: Function 'fb_data_get_thread' argument 2 names different: declaration 'index' definition 'n'. bitlbee-facebook-1.2.2/facebook/facebook-data.c:290:40: note: Function 'fb_data_get_thread' argument 2 names different: declaration 'index' definition 'n'. 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-data.c:293:11: style: Variable 'tid' can be declared as pointer to const [constVariablePointer] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-data.c:348:20: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-data.c:359:20: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-data.c:45:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable priv [valueFlowBailoutIncompleteVar] head bitlbee-facebook-1.2.2/facebook/facebook-glib.h:26:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] head bitlbee-facebook-1.2.2/facebook/facebook-glib.h:26:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-http.c:158:20: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-http.c:188:27: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-http.c:260:20: style: Variable 'hriv' can be declared as pointer to const [constVariablePointer] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-http.c:320:27: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-http.c:331:27: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-http.c:434:41: style: Parameter 'request' can be declared as pointer to const. However it seems that 'fb_http_request_cb' is a callback function, if 'request' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bitlbee-facebook-1.2.2/facebook/facebook-http.c:510:41: note: You might need to cast the function pointer here bitlbee-facebook-1.2.2/facebook/facebook-http.c:434:41: note: Parameter 'request' can be declared as pointer to const 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-http.c:492:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_GSIZE_FORMAT [valueFlowBailoutIncompleteVar] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-http.c:855:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_GINT64_FORMAT [valueFlowBailoutIncompleteVar] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-http.c:86:47: style: Parameter 'request' can be declared as pointer to const. However it seems that 'fb_http_req_close_nuller' is a callback function, if 'request' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bitlbee-facebook-1.2.2/facebook/facebook-http.c:98:31: note: You might need to cast the function pointer here bitlbee-facebook-1.2.2/facebook/facebook-http.c:86:47: note: Parameter 'request' can be declared as pointer to const 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-http.c:94:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable priv [valueFlowBailoutIncompleteVar] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-json.c:53:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable priv [valueFlowBailoutIncompleteVar] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-mqtt.c:106:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_ERROR [valueFlowBailoutIncompleteVar] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-mqtt.c:158:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable priv [valueFlowBailoutIncompleteVar] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-mqtt.c:357:19: style: Condition '0&&res<0' is always false [knownConditionTrueFalse] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-mqtt.c:560:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable B_EV_IO_WRITE [valueFlowBailoutIncompleteVar] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-mqtt.c:566:53: style: Parameter 'ssl' can be declared as pointer to const. However it seems that 'fb_mqtt_cb_open' is a callback function, if 'ssl' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bitlbee-facebook-1.2.2/facebook/facebook-mqtt.c:597:57: note: You might need to cast the function pointer here bitlbee-facebook-1.2.2/facebook/facebook-mqtt.c:566:53: note: Parameter 'ssl' can be declared as pointer to const 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-mqtt.c:573:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSL_OK [valueFlowBailoutIncompleteVar] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-mqtt.c:634:20: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-mqtt.c:776:13: style: Variable 'byte' can be declared as pointer to const [constVariablePointer] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-thrift.c:183:31: style: Same value in both branches of ternary operator. [duplicateValueTernary] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-thrift.c:36:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable priv [valueFlowBailoutIncompleteVar] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-thrift.c:510:31: style: Same value in both branches of ternary operator. [duplicateValueTernary] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-thrift.c:531:35: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-thrift.c:544:35: error: Shifting signed 64-bit value by 63 bits is undefined behaviour [shiftTooManyBitsSigned] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-thrift.c:84:22: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-thrift.c:94:22: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-util.c:210:12: style: Variable 'chr' can be declared as pointer to const [constVariablePointer] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-util.c:286:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_ascii_table [valueFlowBailoutIncompleteVar] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-util.c:333:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_CONVERTER_INPUT_AT_END [valueFlowBailoutIncompleteVar] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-util.c:362:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_ZLIB_COMPRESSOR_FORMAT_ZLIB [valueFlowBailoutIncompleteVar] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-util.c:374:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_ZLIB_COMPRESSOR_FORMAT_ZLIB [valueFlowBailoutIncompleteVar] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook-util.c:411:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_CHECKSUM_SHA256 [valueFlowBailoutIncompleteVar] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:1025:43: style: Parameter 'topic' can be declared as pointer to const. However it seems that 'fb_chat_topic' is a callback function, if 'topic' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bitlbee-facebook-1.2.2/facebook/facebook.c:1256:23: note: You might need to cast the function pointer here bitlbee-facebook-1.2.2/facebook/facebook.c:1025:43: note: Parameter 'topic' can be declared as pointer to const 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:1159:17: style: Variable 'iu' can be declared as pointer to const [constVariablePointer] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:1199:12: style: Variable 'name' can be declared as pointer to const [constVariablePointer] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:1203:23: style: Variable 'gc' can be declared as pointer to const [constVariablePointer] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:121:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IRC_CHANNEL_JOINED [valueFlowBailoutIncompleteVar] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:178:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_GINT64_FORMAT [valueFlowBailoutIncompleteVar] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:235:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_VALUE_INIT [valueFlowBailoutIncompleteVar] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:284:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_GINT64_FORMAT [valueFlowBailoutIncompleteVar] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:337:13: style: Variable 'l' can be declared as pointer to const [constVariablePointer] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:347:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_GINT64_FORMAT [valueFlowBailoutIncompleteVar] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:433:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_GINT64_FORMAT [valueFlowBailoutIncompleteVar] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:489:20: style: Variable 'pres' can be declared as pointer to const [constVariablePointer] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:48:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_GINT64_FORMAT [valueFlowBailoutIncompleteVar] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:492:13: style: Variable 'l' can be declared as pointer to const [constVariablePointer] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:500:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_GINT64_FORMAT [valueFlowBailoutIncompleteVar] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:520:13: style: Variable 'l' can be declared as pointer to const [constVariablePointer] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:522:16: style: Variable 'user' can be declared as pointer to const [constVariablePointer] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:546:17: style: Variable 'bu' can be declared as pointer to const [constVariablePointer] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:551:12: style: Variable 'h' can be declared as pointer to const [constVariablePointer] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:556:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_GINT64_FORMAT [valueFlowBailoutIncompleteVar] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:600:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_GINT64_FORMAT [valueFlowBailoutIncompleteVar] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:613:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_GINT64_FORMAT [valueFlowBailoutIncompleteVar] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:635:16: style: Variable 'user' can be declared as pointer to const [constVariablePointer] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:637:13: style: Variable 'l' can be declared as pointer to const [constVariablePointer] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:638:13: style: Variable 'm' can be declared as pointer to const [constVariablePointer] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:696:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_GINT64_FORMAT [valueFlowBailoutIncompleteVar] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:731:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SET_INVALID [valueFlowBailoutIncompleteVar] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:741:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SET_INVALID [valueFlowBailoutIncompleteVar] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:753:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SET_NULL_OK [valueFlowBailoutIncompleteVar] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:883:56: style: Parameter 'message' can be declared as pointer to const. However it seems that 'fb_buddy_msg' is a callback function, if 'message' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bitlbee-facebook-1.2.2/facebook/facebook.c:1246:22: note: You might need to cast the function pointer here bitlbee-facebook-1.2.2/facebook/facebook.c:883:56: note: Parameter 'message' can be declared as pointer to const 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:893:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPT_LOGGED_IN [valueFlowBailoutIncompleteVar] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:914:35: style: Parameter 'ic' can be declared as pointer to const. However it seems that 'fb_set_away' is a callback function, if 'ic' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bitlbee-facebook-1.2.2/facebook/facebook.c:1247:21: note: You might need to cast the function pointer here bitlbee-facebook-1.2.2/facebook/facebook.c:914:35: note: Parameter 'ic' can be declared as pointer to const 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:914:45: style: Parameter 'state' can be declared as pointer to const. However it seems that 'fb_set_away' is a callback function, if 'state' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bitlbee-facebook-1.2.2/facebook/facebook.c:1247:21: note: You might need to cast the function pointer here bitlbee-facebook-1.2.2/facebook/facebook.c:914:45: note: Parameter 'state' can be declared as pointer to const 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:929:38: style: Parameter 'ic' can be declared as pointer to const. However it seems that 'fb_send_typing' is a callback function, if 'ic' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bitlbee-facebook-1.2.2/facebook/facebook.c:1248:24: note: You might need to cast the function pointer here bitlbee-facebook-1.2.2/facebook/facebook.c:929:38: note: Parameter 'ic' can be declared as pointer to const 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:929:48: style: Parameter 'who' can be declared as pointer to const. However it seems that 'fb_send_typing' is a callback function, if 'who' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bitlbee-facebook-1.2.2/facebook/facebook.c:1248:24: note: You might need to cast the function pointer here bitlbee-facebook-1.2.2/facebook/facebook.c:929:48: note: Parameter 'who' can be declared as pointer to const 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:938:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPT_TYPING [valueFlowBailoutIncompleteVar] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:944:36: style: Parameter 'ic' can be declared as pointer to const. However it seems that 'fb_add_buddy' is a callback function, if 'ic' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bitlbee-facebook-1.2.2/facebook/facebook.c:1249:22: note: You might need to cast the function pointer here bitlbee-facebook-1.2.2/facebook/facebook.c:944:36: note: Parameter 'ic' can be declared as pointer to const 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:944:46: style: Parameter 'name' can be declared as pointer to const. However it seems that 'fb_add_buddy' is a callback function, if 'name' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bitlbee-facebook-1.2.2/facebook/facebook.c:1249:22: note: You might need to cast the function pointer here bitlbee-facebook-1.2.2/facebook/facebook.c:944:46: note: Parameter 'name' can be declared as pointer to const 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:944:58: style: Parameter 'group' can be declared as pointer to const. However it seems that 'fb_add_buddy' is a callback function, if 'group' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bitlbee-facebook-1.2.2/facebook/facebook.c:1249:22: note: You might need to cast the function pointer here bitlbee-facebook-1.2.2/facebook/facebook.c:944:58: note: Parameter 'group' can be declared as pointer to const 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:950:39: style: Parameter 'ic' can be declared as pointer to const. However it seems that 'fb_remove_buddy' is a callback function, if 'ic' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bitlbee-facebook-1.2.2/facebook/facebook.c:1250:25: note: You might need to cast the function pointer here bitlbee-facebook-1.2.2/facebook/facebook.c:950:39: note: Parameter 'ic' can be declared as pointer to const 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:950:49: style: Parameter 'name' can be declared as pointer to const. However it seems that 'fb_remove_buddy' is a callback function, if 'name' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bitlbee-facebook-1.2.2/facebook/facebook.c:1250:25: note: You might need to cast the function pointer here bitlbee-facebook-1.2.2/facebook/facebook.c:950:49: note: Parameter 'name' can be declared as pointer to const 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:950:61: style: Parameter 'group' can be declared as pointer to const. However it seems that 'fb_remove_buddy' is a callback function, if 'group' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bitlbee-facebook-1.2.2/facebook/facebook.c:1250:25: note: You might need to cast the function pointer here bitlbee-facebook-1.2.2/facebook/facebook.c:950:61: note: Parameter 'group' can be declared as pointer to const 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:956:44: style: Parameter 'who' can be declared as pointer to const. However it seems that 'fb_chat_invite' is a callback function, if 'who' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bitlbee-facebook-1.2.2/facebook/facebook.c:1251:24: note: You might need to cast the function pointer here bitlbee-facebook-1.2.2/facebook/facebook.c:956:44: note: Parameter 'who' can be declared as pointer to const 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:971:42: style: Parameter 'who' can be declared as pointer to const. However it seems that 'fb_chat_kick' is a callback function, if 'who' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bitlbee-facebook-1.2.2/facebook/facebook.c:1252:22: note: You might need to cast the function pointer here bitlbee-facebook-1.2.2/facebook/facebook.c:971:42: note: Parameter 'who' can be declared as pointer to const 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:98:12: style: Variable 'irc' can be declared as pointer to const [constVariablePointer] 2.18.0 bitlbee-facebook-1.2.2/facebook/facebook.c:995:41: style: Parameter 'message' can be declared as pointer to const. However it seems that 'fb_chat_msg' is a callback function, if 'message' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bitlbee-facebook-1.2.2/facebook/facebook.c:1254:21: note: You might need to cast the function pointer here bitlbee-facebook-1.2.2/facebook/facebook.c:995:41: note: Parameter 'message' can be declared as pointer to const DONE