[E-devel] std=c99 for ecore_con dns.c got missing
Hello. Either during the merge of ecore into efl or during Gustavos changes the std=c99 passing to ecore_con got missing. I just found it while compiling with clang. No time right now to dig into this so only the report here. Added it to my local cflags for now. regards Stefan Schmidt -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] std=c99 for ecore_con dns.c got missing
On Thu, Dec 6, 2012 at 11:28 AM, Stefan Schmidt wrote: > Hello. > > Either during the merge of ecore into efl or during Gustavos changes the > std=c99 passing to ecore_con got missing. adding std=c99 is a BAD idea. Better use AC_PROG_CC_C99 if a c99 compiler is needed. But honestly, i don't know why it is needed, as current compiler check is working for years. So before changing, tell me what the error is Vincent > > I just found it while compiling with clang. No time right now to dig > into this so only the report here. Added it to my local cflags for now. > > regards > Stefan Schmidt > > -- > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial > Remotely access PCs and mobile devices and provide instant support > Improve your efficiency, and focus on delivering more value-add services > Discover what IT Professionals Know. Rescue delivers > http://p.sf.net/sfu/logmein_12329d2d > ___ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] std=c99 for ecore_con dns.c got missing
Hello. On 06/12/12 10:34, Vincent Torri wrote: > On Thu, Dec 6, 2012 at 11:28 AM, Stefan Schmidt wrote: >> Hello. >> >> Either during the merge of ecore into efl or during Gustavos changes the >> std=c99 passing to ecore_con got missing. > > adding std=c99 is a BAD idea. Better use AC_PROG_CC_C99 if a c99 > compiler is needed. But honestly, i don't know why it is needed, as > current compiler check is working for years. So before changing, tell > me what the error is I remember we had problems with that when Mike put in dns.c. Anyway here are the problems I see when building with Ubuntu clang version 3.0-6ubuntu3 (tags/RELEASE_30/final) (based on LLVM 3.0): lib/ecore_con/dns.c:878:4: error: 'for' loop initial declarations are only allowed in C99 mode lib/ecore_con/dns.c:878:4: note: use option -std=c99 or -std=gnu99 to compile your code lib/ecore_con/dns.c:885:4: error: 'for' loop initial declarations are only allowed in C99 mode lib/ecore_con/dns.c:888:5: error: 'for' loop initial declarations are only allowed in C99 mode lib/ecore_con/dns.c: In function 'dns_p_push': lib/ecore_con/dns.c:988:28: warning: declaration of '__v' shadows a previous local [-Wshadow] lib/ecore_con/dns.c:988:28: warning: shadowed declaration is here [-Wshadow] lib/ecore_con/dns.c:988:28: warning: declaration of '__x' shadows a previous local [-Wshadow] lib/ecore_con/dns.c:988:28: warning: shadowed declaration is here [-Wshadow] lib/ecore_con/dns.c:1006:28: warning: declaration of '__v' shadows a previous local [-Wshadow] lib/ecore_con/dns.c:1006:28: warning: shadowed declaration is here [-Wshadow] lib/ecore_con/dns.c:1006:28: warning: declaration of '__x' shadows a previous local [-Wshadow] lib/ecore_con/dns.c:1006:28: warning: shadowed declaration is here [-Wshadow] lib/ecore_con/dns.c:1022:28: warning: declaration of '__v' shadows a previous local [-Wshadow] lib/ecore_con/dns.c:1022:28: warning: shadowed declaration is here [-Wshadow] lib/ecore_con/dns.c:1022:28: warning: declaration of '__x' shadows a previous local [-Wshadow] lib/ecore_con/dns.c:1022:28: warning: shadowed declaration is here [-Wshadow] lib/ecore_con/dns.c:1033:28: warning: declaration of '__v' shadows a previous local [-Wshadow] lib/ecore_con/dns.c:1033:28: warning: shadowed declaration is here [-Wshadow] lib/ecore_con/dns.c:1033:28: warning: declaration of '__x' shadows a previous local [-Wshadow] lib/ecore_con/dns.c:1033:28: warning: shadowed declaration is here [-Wshadow] lib/ecore_con/dns.c: In function 'dns_rr_exists': lib/ecore_con/dns.c:1787:2: error: 'for' loop initial declarations are only allowed in C99 mode lib/ecore_con/dns.c: In function 'dns_res_merge': lib/ecore_con/dns.c:5414:2: error: 'for' loop initial declarations are only allowed in C99 mode lib/ecore_con/dns.c:5421:4: error: 'for' loop initial declarations are only allowed in C99 mode lib/ecore_con/dns.c:5424:5: error: 'for' loop initial declarations are only allowed in C99 mode lib/ecore_con/dns.c: In function 'dns_res_glue': lib/ecore_con/dns.c:5480:3: error: 'for' loop initial declarations are only allowed in C99 mode lib/ecore_con/dns.c:5496:3: error: 'for' loop initial declarations are only allowed in C99 mode lib/ecore_con/dns.c: In function 'dns_res_exec': lib/ecore_con/dns.c:5604:3: error: 'for' loop initial declarations are only allowed in C99 mode lib/ecore_con/dns.c:5608:3: error: 'for' loop initial declarations are only allowed in C99 mode lib/ecore_con/dns.c:5806:3: error: 'for' loop initial declarations are only allowed in C99 mode lib/ecore_con/dns.c:5880:3: error: 'for' loop initial declarations are only allowed in C99 mode lib/ecore_con/dns.c:5884:3: error: 'for' loop initial declarations are only allowed in C99 mode lib/ecore_con/dns.c:5893:3: error: 'for' loop initial declarations are only allowed in C99 mode lib/ecore_con/dns.c:6027:3: error: 'for' loop initial declarations are only allowed in C99 mode The warnings are always there so can be ignored for this particular case. regards Stefan Schmidt -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] std=c99 for ecore_con dns.c got missing
so it's a problem with clang. Fix your CC, then On Thu, Dec 6, 2012 at 11:59 AM, Stefan Schmidt wrote: > Hello. > > On 06/12/12 10:34, Vincent Torri wrote: >> On Thu, Dec 6, 2012 at 11:28 AM, Stefan Schmidt >> wrote: >>> Hello. >>> >>> Either during the merge of ecore into efl or during Gustavos changes the >>> std=c99 passing to ecore_con got missing. >> >> adding std=c99 is a BAD idea. Better use AC_PROG_CC_C99 if a c99 >> compiler is needed. But honestly, i don't know why it is needed, as >> current compiler check is working for years. So before changing, tell >> me what the error is > > I remember we had problems with that when Mike put in dns.c. Anyway here > are the problems I see when building with Ubuntu clang version > 3.0-6ubuntu3 (tags/RELEASE_30/final) (based on LLVM 3.0): > > lib/ecore_con/dns.c:878:4: error: 'for' loop initial declarations are > only allowed in C99 mode > lib/ecore_con/dns.c:878:4: note: use option -std=c99 or -std=gnu99 to > compile your code > lib/ecore_con/dns.c:885:4: error: 'for' loop initial declarations are > only allowed in C99 mode > lib/ecore_con/dns.c:888:5: error: 'for' loop initial declarations are > only allowed in C99 mode > lib/ecore_con/dns.c: In function 'dns_p_push': > lib/ecore_con/dns.c:988:28: warning: declaration of '__v' shadows a > previous local [-Wshadow] > lib/ecore_con/dns.c:988:28: warning: shadowed declaration is here [-Wshadow] > lib/ecore_con/dns.c:988:28: warning: declaration of '__x' shadows a > previous local [-Wshadow] > lib/ecore_con/dns.c:988:28: warning: shadowed declaration is here [-Wshadow] > lib/ecore_con/dns.c:1006:28: warning: declaration of '__v' shadows a > previous local [-Wshadow] > lib/ecore_con/dns.c:1006:28: warning: shadowed declaration is here > [-Wshadow] > lib/ecore_con/dns.c:1006:28: warning: declaration of '__x' shadows a > previous local [-Wshadow] > lib/ecore_con/dns.c:1006:28: warning: shadowed declaration is here > [-Wshadow] > lib/ecore_con/dns.c:1022:28: warning: declaration of '__v' shadows a > previous local [-Wshadow] > lib/ecore_con/dns.c:1022:28: warning: shadowed declaration is here > [-Wshadow] > lib/ecore_con/dns.c:1022:28: warning: declaration of '__x' shadows a > previous local [-Wshadow] > lib/ecore_con/dns.c:1022:28: warning: shadowed declaration is here > [-Wshadow] > lib/ecore_con/dns.c:1033:28: warning: declaration of '__v' shadows a > previous local [-Wshadow] > lib/ecore_con/dns.c:1033:28: warning: shadowed declaration is here > [-Wshadow] > lib/ecore_con/dns.c:1033:28: warning: declaration of '__x' shadows a > previous local [-Wshadow] > lib/ecore_con/dns.c:1033:28: warning: shadowed declaration is here > [-Wshadow] > lib/ecore_con/dns.c: In function 'dns_rr_exists': > lib/ecore_con/dns.c:1787:2: error: 'for' loop initial declarations are > only allowed in C99 mode > lib/ecore_con/dns.c: In function 'dns_res_merge': > lib/ecore_con/dns.c:5414:2: error: 'for' loop initial declarations are > only allowed in C99 mode > lib/ecore_con/dns.c:5421:4: error: 'for' loop initial declarations are > only allowed in C99 mode > lib/ecore_con/dns.c:5424:5: error: 'for' loop initial declarations are > only allowed in C99 mode > lib/ecore_con/dns.c: In function 'dns_res_glue': > lib/ecore_con/dns.c:5480:3: error: 'for' loop initial declarations are > only allowed in C99 mode > lib/ecore_con/dns.c:5496:3: error: 'for' loop initial declarations are > only allowed in C99 mode > lib/ecore_con/dns.c: In function 'dns_res_exec': > lib/ecore_con/dns.c:5604:3: error: 'for' loop initial declarations are > only allowed in C99 mode > lib/ecore_con/dns.c:5608:3: error: 'for' loop initial declarations are > only allowed in C99 mode > lib/ecore_con/dns.c:5806:3: error: 'for' loop initial declarations are > only allowed in C99 mode > lib/ecore_con/dns.c:5880:3: error: 'for' loop initial declarations are > only allowed in C99 mode > lib/ecore_con/dns.c:5884:3: error: 'for' loop initial declarations are > only allowed in C99 mode > lib/ecore_con/dns.c:5893:3: error: 'for' loop initial declarations are > only allowed in C99 mode > lib/ecore_con/dns.c:6027:3: error: 'for' loop initial declarations are > only allowed in C99 mode > > The warnings are always there so can be ignored for this particular case. > > regards > Stefan Schmidt > > -- > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial > Remotely access PCs and mobile devices and provide instant support > Improve your efficiency, and focus on delivering more value-add services > Discover what IT Professionals Know. Rescue delivers > http://p.sf.net/sfu/logmein_12329d2d > ___ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- LogMeIn Rescue: Anywhere, Anytime Remot
Re: [E-devel] std=c99 for ecore_con dns.c got missing
Hello. On 06/12/12 11:57, Vincent Torri wrote: > so it's a problem with clang. Fix your CC, then Thanks, its not my CC. I have a way to build it for my cases. regards Stefan Schmidt -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] std=c99 for ecore_con dns.c got missing
On Thu, Dec 6, 2012 at 12:57 PM, Vincent Torri wrote: > so it's a problem with clang. Fix your CC, then > > Is it really? dns_rr_foreach is defined as "for (struct dns_rr_i DNS_PP_XPASTE(i, __LINE__) = *dns_rr_i_new((P), __VA_ARGS__); ..." in dns.h As this is a declaration in the loop, it seems that clang's complaining is correct, this is a C99 feature. So I think, a C99 compiler should be required, even if GCC does not complain. > > On Thu, Dec 6, 2012 at 11:59 AM, Stefan Schmidt > wrote: > > Hello. > > > > On 06/12/12 10:34, Vincent Torri wrote: > >> On Thu, Dec 6, 2012 at 11:28 AM, Stefan Schmidt > wrote: > >>> Hello. > >>> > >>> Either during the merge of ecore into efl or during Gustavos changes > the > >>> std=c99 passing to ecore_con got missing. > >> > >> adding std=c99 is a BAD idea. Better use AC_PROG_CC_C99 if a c99 > >> compiler is needed. But honestly, i don't know why it is needed, as > >> current compiler check is working for years. So before changing, tell > >> me what the error is > > > > I remember we had problems with that when Mike put in dns.c. Anyway here > > are the problems I see when building with Ubuntu clang version > > 3.0-6ubuntu3 (tags/RELEASE_30/final) (based on LLVM 3.0): > > > > lib/ecore_con/dns.c:878:4: error: 'for' loop initial declarations are > > only allowed in C99 mode > > lib/ecore_con/dns.c:878:4: note: use option -std=c99 or -std=gnu99 to > > compile your code > > lib/ecore_con/dns.c:885:4: error: 'for' loop initial declarations are > > only allowed in C99 mode > > lib/ecore_con/dns.c:888:5: error: 'for' loop initial declarations are > > only allowed in C99 mode > > lib/ecore_con/dns.c: In function 'dns_p_push': > > lib/ecore_con/dns.c:988:28: warning: declaration of '__v' shadows a > > previous local [-Wshadow] > > lib/ecore_con/dns.c:988:28: warning: shadowed declaration is here > [-Wshadow] > > lib/ecore_con/dns.c:988:28: warning: declaration of '__x' shadows a > > previous local [-Wshadow] > > lib/ecore_con/dns.c:988:28: warning: shadowed declaration is here > [-Wshadow] > > lib/ecore_con/dns.c:1006:28: warning: declaration of '__v' shadows a > > previous local [-Wshadow] > > lib/ecore_con/dns.c:1006:28: warning: shadowed declaration is here > > [-Wshadow] > > lib/ecore_con/dns.c:1006:28: warning: declaration of '__x' shadows a > > previous local [-Wshadow] > > lib/ecore_con/dns.c:1006:28: warning: shadowed declaration is here > > [-Wshadow] > > lib/ecore_con/dns.c:1022:28: warning: declaration of '__v' shadows a > > previous local [-Wshadow] > > lib/ecore_con/dns.c:1022:28: warning: shadowed declaration is here > > [-Wshadow] > > lib/ecore_con/dns.c:1022:28: warning: declaration of '__x' shadows a > > previous local [-Wshadow] > > lib/ecore_con/dns.c:1022:28: warning: shadowed declaration is here > > [-Wshadow] > > lib/ecore_con/dns.c:1033:28: warning: declaration of '__v' shadows a > > previous local [-Wshadow] > > lib/ecore_con/dns.c:1033:28: warning: shadowed declaration is here > > [-Wshadow] > > lib/ecore_con/dns.c:1033:28: warning: declaration of '__x' shadows a > > previous local [-Wshadow] > > lib/ecore_con/dns.c:1033:28: warning: shadowed declaration is here > > [-Wshadow] > > lib/ecore_con/dns.c: In function 'dns_rr_exists': > > lib/ecore_con/dns.c:1787:2: error: 'for' loop initial declarations are > > only allowed in C99 mode > > lib/ecore_con/dns.c: In function 'dns_res_merge': > > lib/ecore_con/dns.c:5414:2: error: 'for' loop initial declarations are > > only allowed in C99 mode > > lib/ecore_con/dns.c:5421:4: error: 'for' loop initial declarations are > > only allowed in C99 mode > > lib/ecore_con/dns.c:5424:5: error: 'for' loop initial declarations are > > only allowed in C99 mode > > lib/ecore_con/dns.c: In function 'dns_res_glue': > > lib/ecore_con/dns.c:5480:3: error: 'for' loop initial declarations are > > only allowed in C99 mode > > lib/ecore_con/dns.c:5496:3: error: 'for' loop initial declarations are > > only allowed in C99 mode > > lib/ecore_con/dns.c: In function 'dns_res_exec': > > lib/ecore_con/dns.c:5604:3: error: 'for' loop initial declarations are > > only allowed in C99 mode > > lib/ecore_con/dns.c:5608:3: error: 'for' loop initial declarations are > > only allowed in C99 mode > > lib/ecore_con/dns.c:5806:3: error: 'for' loop initial declarations are > > only allowed in C99 mode > > lib/ecore_con/dns.c:5880:3: error: 'for' loop initial declarations are > > only allowed in C99 mode > > lib/ecore_con/dns.c:5884:3: error: 'for' loop initial declarations are > > only allowed in C99 mode > > lib/ecore_con/dns.c:5893:3: error: 'for' loop initial declarations are > > only allowed in C99 mode > > lib/ecore_con/dns.c:6027:3: error: 'for' loop initial declarations are > > only allowed in C99 mode > > > > The warnings are always there so can be ignored for this particular case. > > > > regards > > Stefan Schmidt > > > > > -- > > LogMeIn Rescue: Anywhere, Any
Re: [E-devel] std=c99 for ecore_con dns.c got missing
On Thu, Dec 6, 2012 at 3:08 PM, thomasg wrote: > On Thu, Dec 6, 2012 at 12:57 PM, Vincent Torri wrote: > >> so it's a problem with clang. Fix your CC, then >> >> > Is it really? > dns_rr_foreach is defined as "for (struct dns_rr_i DNS_PP_XPASTE(i, > __LINE__) = *dns_rr_i_new((P), __VA_ARGS__); ..." in dns.h > As this is a declaration in the loop, it seems that clang's complaining is > correct, this is a C99 feature. > > So I think, a C99 compiler should be required, even if GCC does not > complain. or move the declaration outside the loop... Vincent > > >> >> > On Thu, Dec 6, 2012 at 11:59 AM, Stefan Schmidt >> wrote: >> > Hello. >> > >> > On 06/12/12 10:34, Vincent Torri wrote: >> >> On Thu, Dec 6, 2012 at 11:28 AM, Stefan Schmidt >> wrote: >> >>> Hello. >> >>> >> >>> Either during the merge of ecore into efl or during Gustavos changes >> the >> >>> std=c99 passing to ecore_con got missing. >> >> >> >> adding std=c99 is a BAD idea. Better use AC_PROG_CC_C99 if a c99 >> >> compiler is needed. But honestly, i don't know why it is needed, as >> >> current compiler check is working for years. So before changing, tell >> >> me what the error is >> > >> > I remember we had problems with that when Mike put in dns.c. Anyway here >> > are the problems I see when building with Ubuntu clang version >> > 3.0-6ubuntu3 (tags/RELEASE_30/final) (based on LLVM 3.0): >> > >> > lib/ecore_con/dns.c:878:4: error: 'for' loop initial declarations are >> > only allowed in C99 mode >> > lib/ecore_con/dns.c:878:4: note: use option -std=c99 or -std=gnu99 to >> > compile your code >> > lib/ecore_con/dns.c:885:4: error: 'for' loop initial declarations are >> > only allowed in C99 mode >> > lib/ecore_con/dns.c:888:5: error: 'for' loop initial declarations are >> > only allowed in C99 mode >> > lib/ecore_con/dns.c: In function 'dns_p_push': >> > lib/ecore_con/dns.c:988:28: warning: declaration of '__v' shadows a >> > previous local [-Wshadow] >> > lib/ecore_con/dns.c:988:28: warning: shadowed declaration is here >> [-Wshadow] >> > lib/ecore_con/dns.c:988:28: warning: declaration of '__x' shadows a >> > previous local [-Wshadow] >> > lib/ecore_con/dns.c:988:28: warning: shadowed declaration is here >> [-Wshadow] >> > lib/ecore_con/dns.c:1006:28: warning: declaration of '__v' shadows a >> > previous local [-Wshadow] >> > lib/ecore_con/dns.c:1006:28: warning: shadowed declaration is here >> > [-Wshadow] >> > lib/ecore_con/dns.c:1006:28: warning: declaration of '__x' shadows a >> > previous local [-Wshadow] >> > lib/ecore_con/dns.c:1006:28: warning: shadowed declaration is here >> > [-Wshadow] >> > lib/ecore_con/dns.c:1022:28: warning: declaration of '__v' shadows a >> > previous local [-Wshadow] >> > lib/ecore_con/dns.c:1022:28: warning: shadowed declaration is here >> > [-Wshadow] >> > lib/ecore_con/dns.c:1022:28: warning: declaration of '__x' shadows a >> > previous local [-Wshadow] >> > lib/ecore_con/dns.c:1022:28: warning: shadowed declaration is here >> > [-Wshadow] >> > lib/ecore_con/dns.c:1033:28: warning: declaration of '__v' shadows a >> > previous local [-Wshadow] >> > lib/ecore_con/dns.c:1033:28: warning: shadowed declaration is here >> > [-Wshadow] >> > lib/ecore_con/dns.c:1033:28: warning: declaration of '__x' shadows a >> > previous local [-Wshadow] >> > lib/ecore_con/dns.c:1033:28: warning: shadowed declaration is here >> > [-Wshadow] >> > lib/ecore_con/dns.c: In function 'dns_rr_exists': >> > lib/ecore_con/dns.c:1787:2: error: 'for' loop initial declarations are >> > only allowed in C99 mode >> > lib/ecore_con/dns.c: In function 'dns_res_merge': >> > lib/ecore_con/dns.c:5414:2: error: 'for' loop initial declarations are >> > only allowed in C99 mode >> > lib/ecore_con/dns.c:5421:4: error: 'for' loop initial declarations are >> > only allowed in C99 mode >> > lib/ecore_con/dns.c:5424:5: error: 'for' loop initial declarations are >> > only allowed in C99 mode >> > lib/ecore_con/dns.c: In function 'dns_res_glue': >> > lib/ecore_con/dns.c:5480:3: error: 'for' loop initial declarations are >> > only allowed in C99 mode >> > lib/ecore_con/dns.c:5496:3: error: 'for' loop initial declarations are >> > only allowed in C99 mode >> > lib/ecore_con/dns.c: In function 'dns_res_exec': >> > lib/ecore_con/dns.c:5604:3: error: 'for' loop initial declarations are >> > only allowed in C99 mode >> > lib/ecore_con/dns.c:5608:3: error: 'for' loop initial declarations are >> > only allowed in C99 mode >> > lib/ecore_con/dns.c:5806:3: error: 'for' loop initial declarations are >> > only allowed in C99 mode >> > lib/ecore_con/dns.c:5880:3: error: 'for' loop initial declarations are >> > only allowed in C99 mode >> > lib/ecore_con/dns.c:5884:3: error: 'for' loop initial declarations are >> > only allowed in C99 mode >> > lib/ecore_con/dns.c:5893:3: error: 'for' loop initial declarations are >> > only allowed in C99 mode >> > lib/ecore_con/dns.c:6027:3: error: 'for' loop initial declarations are >> > only allowed in C99 mode >> > >> > The warn
Re: [E-devel] std=c99 for ecore_con dns.c got missing
On Thu, Dec 06, 2012 at 12:57:39PM +0100, Vincent Torri wrote: > so it's a problem with clang. Fix your CC, then Clang defaults to C99, so this should only happen if it was explicitly instructed otherwise... Joerg -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] std=c99 for ecore_con dns.c got missing
On Thu, Dec 6, 2012 at 11:12 PM, Vincent Torri wrote: > On Thu, Dec 6, 2012 at 3:08 PM, thomasg wrote: >> On Thu, Dec 6, 2012 at 12:57 PM, Vincent Torri >> wrote: >> >>> so it's a problem with clang. Fix your CC, then >>> >>> >> Is it really? >> dns_rr_foreach is defined as "for (struct dns_rr_i DNS_PP_XPASTE(i, >> __LINE__) = *dns_rr_i_new((P), __VA_ARGS__); ..." in dns.h >> As this is a declaration in the loop, it seems that clang's complaining is >> correct, this is a C99 feature. >> >> So I think, a C99 compiler should be required, even if GCC does not >> complain. > > or move the declaration outside the loop... I think this is some code we pull from outside. So we need to fix upstream first before we do this kind of move... -- Cedric BAIL -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel