vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| int pg_fe_sendauth(AuthRequest areq, PGconn *conn, const char *hostname, const char *password, char *PQerrormsg) { #ifndef KRB5 (void) hostname; /* not used */ #endif .... (fe-auth.c) What does that code actually *do*? //Magnus ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq |
| |||
| * Magnus Hagander (magnus@hagander.net) wrote: > #ifndef KRB5 > (void) hostname; /* not used */ > #endif [...] > What does that code actually *do*? Stop the compiler from complaining about an unused argument. Thanks, Stephen -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGnz/NrzgMPqB3kigRArxWAJwLQmbKdbFq8tDlzBKa+K5YFYe6cQCaA j7N 4Ye5Phzq2mG5jaifzTRBDO8= =uF/b -----END PGP SIGNATURE----- |
| |||
| On 7/19/07, Magnus Hagander <magnus@hagander.net> wrote: > int > pg_fe_sendauth(AuthRequest areq, PGconn *conn, const char *hostname, > const char *password, char *PQerrormsg) > { > #ifndef KRB5 > (void) hostname; /* not used */ > #endif > > ... > > (fe-auth.c) > > What does that code actually *do*? Somebody tried to work around "unused argument" warning? -- marko ---------------------------(end of broadcast)--------------------------- TIP 7: You can help support the PostgreSQL project by donating at http://www.postgresql.org/about/donate |
| |||
| On Thu, Jul 19, 2007 at 06:41:17AM -0400, Stephen Frost wrote: > * Magnus Hagander (magnus@hagander.net) wrote: > > #ifndef KRB5 > > (void) hostname; /* not used */ > > #endif > [...] > > What does that code actually *do*? > > Stop the compiler from complaining about an unused argument. That makes sense, except my compiled didn't warn even when I took it out :-) Ah, well, thanks for clearifying. //Magnus ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq |
| ||||
| * Magnus Hagander (magnus@hagander.net) wrote: > On Thu, Jul 19, 2007 at 06:41:17AM -0400, Stephen Frost wrote: > > Stop the compiler from complaining about an unused argument. > > That makes sense, except my compiled didn't warn even when I took it out > :-) Ah, well, thanks for clearifying. It depends on the compiler you're using.. My recollection is that it shows up at least w/ gcc and -Wall and/or -pedantic. Thanks, Stephen -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGn1MvrzgMPqB3kigRAhsdAJ4hom4KuG4gIw9P1Ccz2t LwGrItlQCcCKST Z0F0YANvsOyzXZoyIYswZl8= =qyD2 -----END PGP SIGNATURE----- |