On 17/07/2020 12:35, Alex Peshkoff via Firebird-devel wrote:
> Not sure about VC - but fresh enough (at least 8.x) gcc often produces
> the following warning (exact reason certainly differs):
>
> /usr/home/firebird/B3_0_Release/src/jrd/trace/../../jrd/trace/../../dsql/../jrd/val.h:154:39:
>
17.07.2020 19:24, Vlad Khorsun wrote:
For this particular case the following solution may be used instead:
memset((void*)&*impure, 0, sizeof(*impure));
Looks even more ugly than before :(
Agreed.
Also, I don't think we should make mass cleanups in stable (v3) and,
probably, in
17.07.2020 18:35, Alex Peshkoff via Firebird-devel wrote:
Not sure about VC - but fresh enough (at least 8.x) gcc often produces the
following warning (exact reason certainly differs):
/usr/home/firebird/B3_0_Release/src/jrd/trace/../../jrd/trace/../../dsql/../jrd/val.h:154:39: warning: ‘void*
17.07.2020 17:35, Alex Peshkoff via Firebird-devel wrote:
clearing an object of non-trivial type ‘struct Jrd::impure_value’;
I'm not sure why the compiler consider impure_value to be non-trivial. Is it because of
union in common or some particular members of it?
I think that using
Not sure about VC - but fresh enough (at least 8.x) gcc often produces
the following warning (exact reason certainly differs):
/usr/home/firebird/B3_0_Release/src/jrd/trace/../../jrd/trace/../../dsql/../jrd/val.h:154:39:
warning: ‘void* memset(void*, int, size_t)’ clearing an object of