summaryrefslogtreecommitdiff
path: root/src/common/sql.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/sql.c')
-rw-r--r--src/common/sql.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/sql.c b/src/common/sql.c
index 65960d8ea..1eae1b29b 100644
--- a/src/common/sql.c
+++ b/src/common/sql.c
@@ -653,8 +653,8 @@ int SqlStmt_BindParam(struct SqlStmt *self, size_t idx, enum SqlDataType buffer_
if (idx >= self->max_params)
return SQL_SUCCESS; // out of range - ignore
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wcast-qual"
+PRAGMA_GCC45(GCC diagnostic push)
+PRAGMA_GCC45(GCC diagnostic ignored "-Wcast-qual")
/*
* MySQL uses the same struct with a non-const buffer for both
* parameters (input) and columns (output).
@@ -662,7 +662,7 @@ int SqlStmt_BindParam(struct SqlStmt *self, size_t idx, enum SqlDataType buffer_
* dropping a const qualifier here.
*/
return Sql_P_BindSqlDataType(self->params+idx, buffer_type, (void *)buffer, buffer_len, NULL, NULL);
-#pragma GCC diagnostic pop
+PRAGMA_GCC45(GCC diagnostic pop)
}
/// Executes the prepared statement.