gcc run on Cygwin does not warn about malfromed parameters

I found that “gcc run on Cygwin does not warn about malfromed parameters!”

for code like
printf("Line %d : %s - parameter should not be declared as Voidn");

it does not warn about missing %d and %s parameter.(even with -Wall option)

I thought there’s some bad option with default Cygwin gcc setting..
but It seems fine for me

C:UsersWinBaramGoogle 드라이브proj3project3_11>gcc -v
Using built-in specs.
Target: x86_64-pc-cygwin
Configured with: /cygdrive/i/szsz/tmpp/gcc/gcc-4.9.2-3.x86_64/src/gcc-4.9.2/configure –srcdir=/cygd
/gcc-4.9.2-3.x86_64/src/gcc-4.9.2 –prefix=/usr –exec-prefix=/usr –bindir=/usr/bin –sbindir=/usr/
sr/libexec –datadir=/usr/share –localstatedir=/var –sysconfdir=/etc –libdir=/usr/lib –datarootd
ir=/usr/share/doc/gcc –htmldir=/usr/share/doc/gcc/html -C –build=x86_64-pc-cygwin –host=x86_64-pc
_64-pc-cygwin –without-libiconv-prefix –without-libintl-prefix –libexecdir=/usr/lib –enable-shar
ibgcc –enable-static –enable-version-specific-runtime-libs –enable-bootstrap –enable-__cxa_atexi
th-tune=generic –enable-languages=ada,c,c++,fortran,lto,objc,obj-c++ –enable-graphite –enable-thr
libatomic –enable-libgomp –disable-libitm –enable-libquadmath –enable-libquadmath-support –enab
ibada –enable-libgcj-sublibs –disable-java-awt –disable-symvers –with-ecj-jar=/usr/share/java/ec
–with-gnu-as –with-cloog-include=/usr/include/cloog-isl –without-libiconv-prefix –without-libint
em-zlib –enable-linker-build-id
Thread model: posix
gcc version 4.9.2 (GCC)

gcc run on my Schools remote linux terminal works well with appropriate warnings.

Why it happens? and How can i fix it?

Source: gcc

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.