OSDN Git Service

Suppress compiler warning.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 27 Nov 2007 18:13:01 +0000 (18:13 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 27 Nov 2007 18:13:01 +0000 (18:13 +0000)
src/backend/utils/adt/xml.c

index 07ca7a8..2327434 100644 (file)
@@ -7,7 +7,7 @@
  * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $PostgreSQL: pgsql/src/backend/utils/adt/xml.c,v 1.61 2007/11/27 12:21:05 petere Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/adt/xml.c,v 1.62 2007/11/27 18:13:01 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -536,7 +536,7 @@ xmltotext(PG_FUNCTION_ARGS)
        xmltype    *data = PG_GETARG_XML_P(0);
 
        /* It's actually binary compatible. */
-       return (text *) data;
+       PG_RETURN_TEXT_P((text *) data);
 }