v0.2.3 - Silence unused static helper warnings after migration rollback reapply

This commit is contained in:
Your Name
2026-03-22 12:11:46 -04:00
parent fc97a9d801
commit c505f9c428
5 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -54,11 +54,11 @@ Skills compose by adoption-list order (`10123`) and trigger tags carry runtime e
Didactyl will support local inference, which is very privacy preserving. Remote inference does however have it's advantages, and in those cases Didactyl supports using Bitcoin Lightning and eCash inference providers.
## Current Status — v0.2.2
## Current Status — v0.2.3
**Active build — this project is barely working. Experiment at your own risk.**
> Last release update: v0.2.2 — Re-apply v0.2.0 migration after history rewrite rollback
> Last release update: v0.2.3 — Silence unused static helper warnings after migration rollback reapply
- Connects to configured relays with auto-reconnect and relay state transition logging
- Publishes configured startup events per relay as each relay becomes connected
+4 -4
View File
@@ -1126,7 +1126,7 @@ static const char* get_context_part_name_copy(int idx) {
return tls_name[0] ? tls_name : NULL;
}
static void template_emit_hook(const char* section_name, int message_index, void* user_data) {
static __attribute__((unused)) void template_emit_hook(const char* section_name, int message_index, void* user_data) {
(void)user_data;
set_context_part_name(message_index, section_name ? section_name : "context_part");
}
@@ -1250,7 +1250,7 @@ void agent_append_context_log(const char* sender_pubkey_hex, const char* phase,
}
static char* build_sender_verification_text(didactyl_sender_tier_t sender_tier) {
static __attribute__((unused)) char* build_sender_verification_text(didactyl_sender_tier_t sender_tier) {
if (sender_tier == DIDACTYL_SENDER_ADMIN) {
return strdup("This message has been cryptographically verified as coming from your administrator.");
}
@@ -1968,7 +1968,7 @@ static char* flatten_skill_content_to_text(const char* skill_content) {
return out;
}
static int append_adopted_skills_context(cJSON* messages) {
static __attribute__((unused)) int append_adopted_skills_context(cJSON* messages) {
if (!messages || !g_cfg) {
return -1;
}
@@ -2078,7 +2078,7 @@ static int append_adopted_skills_context(cJSON* messages) {
return rc;
}
static cJSON* build_recent_admin_dm_history_messages(const char* current_message) {
static __attribute__((unused)) cJSON* build_recent_admin_dm_history_messages(const char* current_message) {
cJSON* messages = cJSON_CreateArray();
if (!messages) {
return NULL;
+2 -2
View File
@@ -12,8 +12,8 @@
// Using DIDACTYL_ prefix to avoid conflicts with nostr_core_lib VERSION macros
#define DIDACTYL_VERSION_MAJOR 0
#define DIDACTYL_VERSION_MINOR 2
#define DIDACTYL_VERSION_PATCH 2
#define DIDACTYL_VERSION "v0.2.2"
#define DIDACTYL_VERSION_PATCH 3
#define DIDACTYL_VERSION "v0.2.3"
// Agent metadata
#define DIDACTYL_NAME "Didactyl"
+1 -1
View File
@@ -999,7 +999,7 @@ static int parse_enabled_flag_local(const char* enabled_s) {
return (strcmp(enabled_s, "false") == 0 || strcmp(enabled_s, "0") == 0) ? 0 : 1;
}
static int parse_skill_address_local(const char* addr, int* out_kind, char out_pubkey_hex[65], char out_d_tag[65]) {
static __attribute__((unused)) int parse_skill_address_local(const char* addr, int* out_kind, char out_pubkey_hex[65], char out_d_tag[65]) {
if (!addr || !out_kind || !out_pubkey_hex || !out_d_tag) {
return -1;
}
+1 -1
View File
@@ -490,7 +490,7 @@ static cJSON* find_tag_value_string(cJSON* tags, const char* key) {
return NULL;
}
static int parse_address_tag(const char* addr, int* out_kind, char out_pubkey[65], char out_d_tag[65]) {
static __attribute__((unused)) int parse_address_tag(const char* addr, int* out_kind, char out_pubkey[65], char out_d_tag[65]) {
if (!addr || !out_kind || !out_pubkey || !out_d_tag) {
return -1;
}