Fix compiler warning on Cygwin
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 24 Mar 2020 18:29:34 +0000 (19:29 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 24 Mar 2020 18:31:02 +0000 (19:31 +0100)
bf68b79e50e3359accc85c94fa23cc03abb9350a introduced an unused variable
compiler warning on Cygwin.

src/backend/utils/misc/ps_status.c

index 584d7709575ee278ae1b5507406a8242d3ac479d..1e8596e664569e3cd1914d7d8a3bbdbdf0f402c3 100644 (file)
@@ -257,7 +257,9 @@ save_ps_display_args(int argc, char **argv)
 void
 init_ps_display(const char *fixed_part)
 {
+#ifndef PS_USE_NONE
    bool        save_update_process_title;
+#endif
 
    Assert(fixed_part || MyBackendType);
    if (!fixed_part)