@@ -100,7 +100,7 @@ replace_variables(char **text, int lineno)
100100}
101101
102102static 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 )
104104{
105105struct statement * stmt ;
106106struct prepared_statement * this ;
@@ -156,14 +156,15 @@ prepare_common(int lineno, struct connection * con, const bool questionmarks, co
156156}
157157
158158/* handle the EXEC SQL PREPARE statement */
159- /* questionmarks is not needed butremians in there for the time being to not change the API */
159+ /* questionmarks is not needed butremains in there for the time being to not change the API */
160160bool
161161ECPGprepare (int lineno ,const char * connection_name ,const bool questionmarks ,const char * name ,const char * variable )
162162{
163163struct connection * con ;
164164struct prepared_statement * this ,
165165* prev ;
166166
167+ (void )questionmarks ;/* quiet the compiler */
167168con = ecpg_get_connection (connection_name );
168169
169170if (!ecpg_init (con ,connection_name ,lineno ))
@@ -174,7 +175,7 @@ ECPGprepare(int lineno, const char *connection_name, const bool questionmarks, c
174175if (this && !deallocate_one (lineno ,ECPG_COMPAT_PGSQL ,con ,prev ,this ))
175176return false;
176177
177- return prepare_common (lineno ,con ,questionmarks , name ,variable );
178+ return prepare_common (lineno ,con ,name ,variable );
178179}
179180
180181struct prepared_statement *
@@ -304,6 +305,7 @@ ecpg_prepared(const char *name, struct connection * con)
304305char *
305306ECPGprepared_statement (const char * connection_name ,const char * name ,int lineno )
306307{
308+ (void )lineno ;/* keep the compiler quiet */
307309return ecpg_prepared (name ,ecpg_get_connection (connection_name ));
308310}
309311
@@ -484,7 +486,7 @@ ecpg_auto_prepare(int lineno, const char *connection_name, const int compat, cha
484486con = ecpg_get_connection (connection_name );
485487prep = ecpg_find_prepared_statement (stmtID ,con ,NULL );
486488/* 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 ))
488490return (false);
489491
490492* name = ecpg_strdup (stmtID ,lineno );