Roman Lebedev wrote:

> Which compiler?

gcc -v
Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.3/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.9.3/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: 
/data_b/portage/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/configure 
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr 
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.3 
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include 
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.9.3 
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.9.3/man 
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.9.3/info 
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4 
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.9.3/python 
--enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt 
--disable-werror --with-system-zlib --enable-nls --without-included-gettext 
--enable-checking=release --with-bugurl=https://bugs.gentoo.org/ 
--with-pkgversion='Gentoo 4.9.3 p1.5, pie-0.6.4' --enable-libstdcxx-time 
--enable-shared --enable-threads=posix --enable-__cxa_atexit 
--enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 
--disable-altivec --disable-fixed-point --enable-targets=all --disable-libgcj 
--enable-libgomp --disable-libmudflap --disable-libssp --disable-libcilkrts 
--enable-vtable-verify --enable-libvtv --enable-lto --without-cloog 
--enable-libsanitizer
Thread model: posix
gcc version 4.9.3 (Gentoo 4.9.3 p1.5, pie-0.6.4) 


maybe this one.. 
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53119


> On Fri, Aug 12, 2016 at 4:44 PM, Wolfgang Goetz
> <wolfgang.zt...@web.de> wrote:
[...]
> > should be save: tmp is filled anyway with data for all program
> > pathes in reload_defaults

oops. nope.  unsave not to initialize, auto variables are not initialized in c.


={{0}}; doesnt work either.





diff --git a/src/iop/rawprepare.c b/src/iop/rawprepare.c
index 2bdb0a0..dc619ff 100644
--- a/src/iop/rawprepare.c
+++ b/src/iop/rawprepare.c
@@ -534,7 +534,8 @@ void cleanup_pipe(dt_iop_module_t *self, dt_dev_pixelpipe_t 
*pipe, dt_dev_pixelp
 
 void reload_defaults(dt_iop_module_t *self)
 {
-  dt_iop_rawprepare_params_t tmp = { 0 };
+  dt_iop_rawprepare_params_t tmp;
+  memset(&tmp, 0, sizeof(dt_iop_rawprepare_params_t));
 
   // we might be called from presets update infrastructure => there is no image
   if(!self->dev) goto end;













> >
> >
> > diff --git a/src/iop/rawprepare.c b/src/iop/rawprepare.c
> > index 2bdb0a0..a64ba55 100644
> > --- a/src/iop/rawprepare.c
> > +++ b/src/iop/rawprepare.c
> > @@ -534,7 +534,7 @@ void cleanup_pipe(dt_iop_module_t *self,
> > dt_dev_pixelpipe_t *pipe, dt_dev_pixelp
> >
> >  void reload_defaults(dt_iop_module_t *self)
> >  {
> > -  dt_iop_rawprepare_params_t tmp = { 0 };
> > +  dt_iop_rawprepare_params_t tmp ;
> >
> >    // we might be called from presets update infrastructure =>
> > there is no image if(!self->dev) goto end;
> >
> >
> >
> >
> >
> >
> >
> >
> > greetings
> > Wolfgang  
> ___________________________________________________________________________
> darktable developer mailing list
> to unsubscribe send a mail to
> darktable-dev+unsubscr...@lists.darktable.org
> 


Attachment: pgpVA6FPrUCQR.pgp
Description: OpenPGP digital signature

Reply via email to