Привет, я решил проблему немного по-другому: прочитал тут: http://community.core-sdi.com/~juliano/dtors-ru.html
про __attribute__ ((constructor)) и инициализировал в конструкторе. Не знаю только, это правильно или нет. Интересно, что в предыдущем примере не инициализит только как static. Андрей ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <debian-russian@lists.debian.org> Sent: Thursday, May 26, 2005 11:27 AM Subject: Re: gcc-2.95 vs gcc-3.x > On Thu, 26 May 2005, Andrei Emeltchenko wrote: > > > Hi, > > sorry for this post, but somehow it is self-explained > > > ... skip > > > => gcc-3.2 -pedantic init_test.c > init_test.c:20: warning: obsolete use of designated initializer with `:' > init_test.c:21: warning: obsolete use of designated initializer with `:' > init_test.c:22: warning: ISO C89 forbids compound literals > init_test.c:22: warning: ISO C forbids casts to union type > init_test.c:22: initializer element is not constant > init_test.c:22: (near initialization for `union_table[0]') > > comment the line with (union _union1) > > => gcc-3.2 -pedantic init_test.c > init_test.c:20: warning: obsolete use of designated initializer with `:' > init_test.c:21: warning: obsolete use of designated initializer with `:' > init_test.c:22: warning: ISO C89 forbids compound literals > > Does it work? > Yura. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]