The arg change mentioned previously is for the program from #15, containing
a function from modules/libcom/test/epicsStackTraceTest.c for which the GCC
issues a warning " specified bound depends on the length of the source
argument [-Wstringop-overflow=]". Now on another kind of warning, like:
"specified bound 64 equals destination size [-Wstringop-truncation]"
this or similar warning is produced from the following:
If the stored value is to contain a terminator, may specify one character
less as arg3 od strncpy, and store 0 in the last character - the message
means that storing the entire destination was tried (leaving no space for
the terminator). Or... disable the -Wstringop-truncation ?
The arg change mentioned previously is for the program from #15, containing libcom/ test/epicsStack TraceTest. c for which the GCC overflow= ]". Now on another kind of warning, like: truncation] "
a function from modules/
issues a warning " specified bound depends on the length of the source
argument [-Wstringop-
"specified bound 64 equals destination size [-Wstringop-
this or similar warning is produced from the following:
modules/ ca/src/ client/ msgForMultiplyD efinedPV. cpp lines 44 and 46 ca/src/ perl/Cap5. xs lines 602 and 694 (here 40, not 64) data.dbr_ string, SvPV_nolen(val), MAX_STRING_SIZE);
strncpy ( this->acc, pAcc, sizeof ( this->acc ) );
strncpy ( this->channel, pChannelName, sizeof ( this->channel ) );
modules/
- both: strncpy(
If the stored value is to contain a terminator, may specify one character truncation ?
less as arg3 od strncpy, and store 0 in the last character - the message
means that storing the entire destination was tried (leaving no space for
the terminator). Or... disable the -Wstringop-