I've looked at the warnings in info.c. The reason of the warnings was macro NULL_IF_N...
authorDave Page <dpage@pgadmin.org>
Wed, 7 Jul 2004 07:55:03 +0000 (07:55 +0000)
committerDave Page <dpage@pgadmin.org>
Wed, 7 Jul 2004 07:55:03 +0000 (07:55 +0000)
Also removed an unused variable (Dave)

info.c

diff --git a/info.c b/info.c
index 735e5b4fb4eb9883e28299f9f8801b910f95676a..9b7b3bf7ac229a711163eda2d30dc6b24361cdd6 100644 (file)
--- a/info.c
+++ b/info.c
@@ -46,7 +46,7 @@
 #define TRIGGER_DELETE 0x01
 #define TRIGGER_UPDATE 0x02
 
-#define    NULL_IF_NULL(a) (a ? a : "(NULL)")
+#define    NULL_IF_NULL(a) ((a) ? (const char*)(a) : "(NULL)")
 
 /* extern GLOBAL_VALUES globals; */
 
@@ -2577,7 +2577,7 @@ PGAPI_Statistics(
               *indx_stmt;
    char        column_name[MAX_INFO_STRING],
            table_qualifier[MAX_INFO_STRING],
-               relhasrules[10], relkind[8];
+               relhasrules[10];
    char      **column_names = NULL;
    SQLINTEGER  column_name_len;
    int         total_columns = 0;