Fix for compiler warning in reloptions.c - Mailing list pgsql-hackers

From Bruce Momjian
Subject Fix for compiler warning in reloptions.c
Date
Msg-id 200901060244.n062i9b24997@momjian.us
Whole thread Raw
Responses Re: Fix for compiler warning in reloptions.c
List pgsql-hackers
The attached applied patch prevents a compiler warning;  the compiler
doesn't know about our elog(ERROR) exit case.

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +
Index: src/backend/access/common/reloptions.c
===================================================================
RCS file: /cvsroot/pgsql/src/backend/access/common/reloptions.c,v
retrieving revision 1.13
diff -c -c -r1.13 reloptions.c
*** src/backend/access/common/reloptions.c    5 Jan 2009 17:14:28 -0000    1.13
--- src/backend/access/common/reloptions.c    6 Jan 2009 02:35:32 -0000
***************
*** 667,673 ****
  {
      char       *value;
      int            value_len;
!     bool        parsed;
      bool        nofree = false;

      if (option->isset && validate)
--- 667,673 ----
  {
      char       *value;
      int            value_len;
!     bool        parsed = true;  /* quiet compiler */
      bool        nofree = false;

      if (option->isset && validate)

pgsql-hackers by date:

Previous
From: "Robert Haas"
Date:
Subject: Re: QuickLZ compression algorithm (Re: Inclusion in the PostgreSQL backend for toasting rows)
Next
From: Tatsuo Ishii
Date:
Subject: contrib Japanese README