Re: wxWidgets 2.9 build
От | Dave Page |
---|---|
Тема | Re: wxWidgets 2.9 build |
Дата | |
Msg-id | AANLkTi=jzy=7tzYxFhY4G+esj76B9GVuH=aSTrRPgq8L@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: wxWidgets 2.9 build (Peter Geoghegan <peter.geoghegan86@gmail.com>) |
Список | pgadmin-hackers |
On Sun, Jan 23, 2011 at 4:01 PM, Peter Geoghegan <peter.geoghegan86@gmail.com> wrote: > >> In principle I'm for incremental commits. Assuming the patch itself is >> ok of course, I haven't actually reviewed anything :-) > > Okay, good. Agreed. We're going to have to do this sooner or later, so let's make it incremental and as easy to deal with as possible. > By the way, I'm seeing lots of warnings like this: > > ./dlg/dlgSequence.cpp:114:6: warning: suggest explicit braces to avoid > ambiguous ‘else’ > > Worth fixing? Yes, always - though I don't actually see a problem there in this case. It looks pretty unambiguous to me (114 being the first line of the else block): // Find, and disable the USAGE ACL option if we're on pre 8.2 // 8.2+ only supports SELECT, UPDATE and USAGE if (!connection->BackendMinimumVersion(8, 2)) { // Disable the checkbox if (!DisablePrivilege(wxT("USAGE"))) wxLogError(_("Failed to disable the USAGE privilege checkbox!")); } else { if (!DisablePrivilege(wxT("INSERT"))) wxLogError(_("Failed to disable the INSERT privilege checkbox!")); if (!DisablePrivilege(wxT("DELETE"))) wxLogError(_("Failed to disable the DELETE privilege checkbox!")); if (!DisablePrivilege(wxT("RULE"))) wxLogError(_("Failed to disable the RULE privilege checkbox!")); if (!DisablePrivilege(wxT("REFERENCES"))) wxLogError(_("Failed to disable the REFERENCES privilege checkbox!")); if (!DisablePrivilege(wxT("TRIGGER"))) wxLogError(_("Failed to disable the TRIGGER privilege checkbox!")); } -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company
В списке pgadmin-hackers по дате отправления: