Related to #6466. Note the current compiler warnings:
freadR.h:24:13: warning: ‘internal_error_buff’ defined but not used [-Wunused-variable]
24 | static char internal_error_buff[1001]; // match internalErrSize
| ^~~~~~~~~~~~~~~~~~~
In file included from fwriteR.c:3:
fwrite.h:12:15: warning: ‘internal_error_buff’ defined but not used [-Wunused-variable]
12 | static char internal_error_buff[256];
| ^~~~~~~~~~~~~~~~~~~
For fwrite.h, the issue is INTERNAL_STOP() is never used in fwriteR.c, only in fwrite.c:
|
INTERNAL_STOP("type %d has no max length method implemented", args.whichFun[j]); // # nocov |
But fwrite.h is included in both files:
IMO this is sloppy design, but it's a bit hard to unentangle -- requires a careful accounting of what's used where across the two .c files.
Related to #6466. Note the current compiler warnings:
For fwrite.h, the issue is
INTERNAL_STOP()is never used in fwriteR.c, only in fwrite.c:data.table/src/fwrite.c
Line 673 in f248bbe
But fwrite.h is included in both files:
data.table/src/fwriteR.c
Line 3 in f248bbe
IMO this is sloppy design, but it's a bit hard to unentangle -- requires a careful accounting of what's used where across the two .c files.