Module-local SQLITE_TRANSIENT wrapper to dodge performance-no-int-to-ptr. * See the matching helper in src/store/store.c for the same pattern. */
| 4007 | /* Module-local SQLITE_TRANSIENT wrapper to dodge performance-no-int-to-ptr. |
| 4008 | * See the matching helper in src/store/store.c for the same pattern. */ |
| 4009 | static sqlite3_destructor_type mcp_sqlite_transient(void) { |
| 4010 | static const volatile intptr_t raw = -1; |
| 4011 | sqlite3_destructor_type dtor = NULL; |
| 4012 | memcpy(&dtor, (const void *)&raw, sizeof(dtor)); |
| 4013 | return dtor; |
| 4014 | } |
| 4015 | #define MCP_SQLITE_TRANSIENT (mcp_sqlite_transient()) |
| 4016 | |
| 4017 | static int bm25_build_match(const char *query, char *out, size_t out_size) { |
nothing calls this directly
no outgoing calls
no test coverage detected