Changeset: c5bd754ab6a4 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=c5bd754ab6a4
Modified Files:
gdk/gdk.h
Branch: default
Log Message:
Reduce size of buffer so that compiler stops warning.
GCC with -Wformat warns about writing the contents of the
BBPrec.physical buffer together with the string ".torderidx" into the
Heap.filename buffer because the declared size of the former plus the
length of the string is larger than the declared size of the latter.
Since we don't actually need 24 bytes (18 is enough) we can reduce the
declared size of the physical buffer.
diffs (12 lines):
diff --git a/gdk/gdk.h b/gdk/gdk.h
--- a/gdk/gdk.h
+++ b/gdk/gdk.h
@@ -1610,7 +1610,7 @@ typedef struct {
char bak[16]; /* logical name backup (tmp_%o) */
bat next; /* next BBP slot in linked list */
BAT *desc; /* the BAT descriptor */
- char physical[24]; /* dir + basename for storage */
+ char physical[20]; /* dir + basename for storage */
str options; /* A string list of options */
int refs; /* in-memory references on which the loaded
status of a BAT relies */
int lrefs; /* logical references on which the existence of
a BAT relies */
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list