@@ -100,7 +100,7 @@ replace_variables(char **text, int lineno)
100
100
}
101
101
102
102
static bool
103
- prepare_common (int lineno , struct connection * con , const bool questionmarks , const char * name , const char * variable )
103
+ prepare_common (int lineno , struct connection * con , const char * name , const char * variable )
104
104
{
105
105
struct statement * stmt ;
106
106
struct prepared_statement * this ;
@@ -156,14 +156,15 @@ prepare_common(int lineno, struct connection * con, const bool questionmarks, co
156
156
}
157
157
158
158
/* handle the EXEC SQL PREPARE statement */
159
- /* questionmarks is not needed but remians in there for the time being to not change the API */
159
+ /* questionmarks is not needed but remains in there for the time being to not change the API */
160
160
bool
161
161
ECPGprepare (int lineno , const char * connection_name , const bool questionmarks , const char * name , const char * variable )
162
162
{
163
163
struct connection * con ;
164
164
struct prepared_statement * this ,
165
165
* prev ;
166
166
167
+ (void ) questionmarks ; /* quiet the compiler */
167
168
con = ecpg_get_connection (connection_name );
168
169
169
170
if (!ecpg_init (con , connection_name , lineno ))
@@ -174,7 +175,7 @@ ECPGprepare(int lineno, const char *connection_name, const bool questionmarks, c
174
175
if (this && !deallocate_one (lineno , ECPG_COMPAT_PGSQL , con , prev , this ))
175
176
return false;
176
177
177
- return prepare_common (lineno , con , questionmarks , name , variable );
178
+ return prepare_common (lineno , con , name , variable );
178
179
}
179
180
180
181
struct prepared_statement *
@@ -304,6 +305,7 @@ ecpg_prepared(const char *name, struct connection * con)
304
305
char *
305
306
ECPGprepared_statement (const char * connection_name , const char * name , int lineno )
306
307
{
308
+ (void )lineno ; /* keep the compiler quiet */
307
309
return ecpg_prepared (name , ecpg_get_connection (connection_name ));
308
310
}
309
311
@@ -484,7 +486,7 @@ ecpg_auto_prepare(int lineno, const char *connection_name, const int compat, cha
484
486
con = ecpg_get_connection (connection_name );
485
487
prep = ecpg_find_prepared_statement (stmtID , con , NULL );
486
488
/* This prepared name doesn't exist on this connection. */
487
- if (!prep && !prepare_common (lineno , con , 0 , stmtID , query ))
489
+ if (!prep && !prepare_common (lineno , con , stmtID , query ))
488
490
return (false);
489
491
490
492
* name = ecpg_strdup (stmtID , lineno );
0 commit comments