@@ -74,7 +74,7 @@ static char* optarg;
74
74
#endif /*NCBI_OS_UNIX*/
75
75
76
76
77
- static const char kRevision [] = "$Revision: 666428 $" ;
77
+ static const char kRevision [] = "$Revision$" ;
78
78
79
79
80
80
static const char * s_Progname (const char * prog )
@@ -149,6 +149,7 @@ int main(int argc, char** argv)
149
149
int /*bool*/ quiet = 0 /*false*/ ;
150
150
const SDBLB_Preference * p = 0 ;
151
151
SDBLB_Preference preference ;
152
+ const char * const * skip ;
152
153
EDBLB_Status result ;
153
154
char hostport [256 ];
154
155
SDBLB_ConnPoint cp ;
@@ -209,11 +210,20 @@ int main(int argc, char** argv)
209
210
if (n != optind || optind >= argc )
210
211
s_Usage (argv [0 ]);
211
212
213
+ #ifdef NCBI_COMPILER_GCC
214
+ # pragma GCC diagnostic push
215
+ # pragma GCC diagnostic ignored "-Wincompatible-pointer-types"
216
+ #endif /*NCBI_COMPILER_GCC*/
217
+ skip = optind + 1 < argc ? & argv [optind + 1 ] : 0 ;
218
+ #ifdef NCBI_COMPILER_GCC
219
+ # pragma GCC diagnostic pop
220
+ #endif /*NCBI_COMPILER_GCC*/
221
+
212
222
s = DBLB_GetServer
213
223
(argv [optind ], standby
214
224
? fDBLB_AllowFallbackToStandby
215
225
: fDBLB_None , p ,
216
- optind + 1 < argc ? & argv [ optind + 1 ] : 0 , /*NCBI_FAKE_WARNING*/
226
+ skip ,
217
227
& cp , server , sizeof (server ),
218
228
& result );
219
229
0 commit comments