[libgda/LIBGDA_5.2] libcsv: Avoid a compiler warning.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda/LIBGDA_5.2] libcsv: Avoid a compiler warning.
- Date: Tue, 27 Oct 2015 20:28:27 +0000 (UTC)
commit c6bb4da0a9ece5b002cb49beb10c242bd4667776
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]