[libgda] libcsv: Avoid a compiler warning.



commit 1977f4dc05095269eb2e568246944abfb0db490a
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Oct 27 11:42:08 2015 +0100

    libcsv: Avoid a compiler warning.

 libgda/libcsv.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libgda/libcsv.c b/libgda/libcsv.c
index 0d3ab64..95795f0 100644
--- a/libgda/libcsv.c
+++ b/libgda/libcsv.c
@@ -143,7 +143,8 @@ csv_fini(struct csv_parser *p, void (*cb1)(char *, size_t, void *), void (*cb2)(
 {
   /* Finalize parsing.  Needed, for example, when file does not end in a newline */
   int quoted = p->quoted;
-  int pstate = p->pstate; /* TODO: This is used by the macros, but the compiler thinks it is not used. */
+  int pstate = p->pstate; /* This is used by the macros, but the compiler thinks it is not used. */
+  (void)pstate; /* Avoid the "set but not used" compiler warning. */
   size_t spaces = p->spaces;
   size_t entry_pos = p->entry_pos;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]