diff --git a/res/res_pjsip_pubsub.c b/res/res_pjsip_pubsub.c
index c28446e680873cc7f8530c502d278459996aa07b..cf94b04a9bf4f6d316569412f74851cca8d2c882 100644
--- a/res/res_pjsip_pubsub.c
+++ b/res/res_pjsip_pubsub.c
@@ -1528,6 +1528,7 @@ void *ast_sip_subscription_get_header(const struct ast_sip_subscription *sub, co
 	return pjsip_msg_find_hdr_by_name(msg, &name, NULL);
 }
 
+/* XXX This function is not used. */
 struct ast_sip_subscription *ast_sip_create_subscription(const struct ast_sip_subscription_handler *handler,
 		struct ast_sip_endpoint *endpoint, const char *resource)
 {