On 2012.06.18 16:19, Sean McBride wrote: > On Sat, 16 Jun 2012 11:49:50 +0800, Xiaofan Chen said: > >> clang: warning: argument unused during compilation: '-std=gnu99' > > The warning you see is telling you that you are specifying -std=gnu99 when > linking, which does nothing. gcc silently ignores that flag when linking, I > believe. > > Perhaps this can be fixed in libusbx's makefiles somehow...
We're specifying gnu99 in AM_CFLAGS, so I wouldn't expect it to end up in LD_FLAGS. This is benign, so I'm not sure it's worth spending time on fixing that. > Also, does libusbx actually need GNU extensions? Does it build with -std=c99 > instead? We had an issue with some versions of MinGW [1] and cygwin [2] shipping with headers using anonymous unions, which is a GNU99 extension not found in C99. Regards, /Pete [1] http://libusbx.git.sourceforge.net/git/gitweb.cgi?p=libusbx/libusbx-pbatard;a=commitdiff;h=ae34d85e93c953e6062bf57449f92078e2364099 [2] http://libusbx.git.sourceforge.net/git/gitweb.cgi?p=libusbx/libusbx-pbatard;a=commitdiff;h=fb33bf26916dae3a443c9d831d5f9985f58bcc6b ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel