Isolate the int-to-ptr cast that SQLITE_TRANSIENT expands to. A union type-pun avoids the performance-no-int-to-ptr diagnostic. */
| 117 | /* Isolate the int-to-ptr cast that SQLITE_TRANSIENT expands to. |
| 118 | A union type-pun avoids the performance-no-int-to-ptr diagnostic. */ |
| 119 | static sqlite3_destructor_type make_transient(void) { |
| 120 | union { |
| 121 | uintptr_t i; |
| 122 | sqlite3_destructor_type fn; |
| 123 | } u; |
| 124 | u.i = (uintptr_t)CBM_NOT_FOUND; |
| 125 | return u.fn; |
| 126 | } |
| 127 | #define BIND_TRANSIENT (make_transient()) |
| 128 | |
| 129 | static int bind_text(sqlite3_stmt *s, int col, const char *v) { |
nothing calls this directly
no outgoing calls
no test coverage detected