This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/16476] New: GCC ignores mismatched prototypes involving integers


	Any number of integers in a function are allowed, even if the
	prototype declares no integers.

Environment:
System: Linux andromeda 2.6.7 #20 Wed Jul 7 15:31:10 EDT 2004 i686 GNU/Linux
Architecture: i686

	
host: i486-pc-linux-gnu
build: i486-pc-linux-gnu
target: i486-pc-linux-gnu
configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux

How-To-Repeat:
	pryzbyj@andromeda:~/remote_save/cane_st7ctl_2004_07_11$ grep '^void drift' *.{c,h}; echo; touch *.{c,h}; make
	st7ctl.c:void drift(int exptime, int a, int b, int c)
	st7ctl.h:void drift();

	cc -Wall -W   -c -o st7ctl.o st7ctl.c
	st7ctl.c: In function `drift':
	st7ctl.c:463: warning: unused parameter `a'
	st7ctl.c:463: warning: unused parameter `b'
	st7ctl.c:463: warning: unused parameter `c'
	st7ctl.c: In function `calibrate':
	st7ctl.c:689: warning: unused variable `pixpersecx'
	st7ctl.c:689: warning: unused variable `pixpersecy'
	st7ctl.c:690: warning: unused variable `bltx'
	st7ctl.c:690: warning: unused variable `blty'
	cc   st7ctl.o  -lm -lsbigudrv -o st7ctl
------- Additional Comments From justinpryzby at users dot sourceforge dot net  2004-07-11 19:39 -------
Fix:
	None known.

-- 
           Summary: GCC ignores mismatched prototypes involving integers
           Product: gcc
           Version: 3.3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: justinpryzby at users dot sourceforge dot net
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i486-pc-linux-gnu
  GCC host triplet: i486-pc-linux-gnu
GCC target triplet: i486-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16476


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]