Hide Forgot
Description of problem: I tried to build libssh package on Fedora 16 and build failed on following errors: /builddir/build/BUILD/libssh-0.5.2/src/connect.c:480:37: error: ISO C forbids braced-groups within expressions [-pedantic] /builddir/build/BUILD/libssh-0.5.2/src/connect.c:543:35: error: ISO C forbids braced-groups within expressions [-pedantic] ... I am able to reproduce it with this: $ cat test.c #include <sys/select.h> int main() { fd_set localset; FD_ZERO(&localset); FD_SET(0, &localset); return 0; } $ gcc -O2 -Wp,-D_FORTIFY_SOURCE=2 -pedantic -pedantic-errors test.c test.c: In function ‘main’: test.c:7:3: error: ISO C forbids braced-groups within expressions [-pedantic] $ rpm -q gcc glibc gcc-4.6.2-1.fc16.x86_64 glibc-2.14.90-14.x86_64 libssh package was built successfully in Fedora 16 [1] with gcc-4.6.0-9.fc16 and glibc-2.13.90-9. [1] http://koji.fedoraproject.org/koji/buildinfo?buildID=246140
I've already got a fix in the queue for this.
Fixed by 2.14.90-22 and later.