diff --git a/README.md b/README.md index 83257c6..542e220 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/agent.c b/src/agent.c index df15814..f27beb1 100644 --- a/src/agent.c +++ b/src/agent.c @@ -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; diff --git a/src/main.h b/src/main.h index 3f1c20f..e31a68d 100644 --- a/src/main.h +++ b/src/main.h @@ -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" diff --git a/src/nostr_handler.c b/src/nostr_handler.c index 2786112..49cb679 100644 --- a/src/nostr_handler.c +++ b/src/nostr_handler.c @@ -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; } diff --git a/src/trigger_manager.c b/src/trigger_manager.c index c63a235..2980af6 100644 --- a/src/trigger_manager.c +++ b/src/trigger_manager.c @@ -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; }