Date: Sun, 9 Nov 1997 22:28:26 -0200 (EDT) From: Joao Carlos Mendes Luis <jonny@coppe.ufrj.br> To: phk@FreeBSD.ORG (Poul-Henning Kamp) Cc: current@FreeBSD.ORG Subject: Re: LINT brooktree848.c failure Message-ID: <199711100028.WAA15256@gaia.coppe.ufrj.br> In-Reply-To: <716.878829588@critter.freebsd.dk> from Poul-Henning Kamp at "Nov 6, 97 04:19:48 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
#define quoting(Poul-Henning Kamp) // phk# make // cc -c -O -pipe -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -nostdinc -I- -I. -I../.. -I/usr/include -DSPX_HACK -DSIMPLELOCK_DEBUG -DSI_DEBUG -DSCSI_2_DEF -DNPX_DEBUG -DLOCKF_DEBUG -DEXT2FS -DDEBUG -DCLUSTERDEBUG -DBOOTP_COMPAT -DBOOTP_NFSV3 -DBOOTP_NFSROOT -DBOOTP -DPOWERFAIL_NMI -DNATM -DLINT_PCCARD_HACK -DFDSEEKWAIT=16 -DNSWAPDEV=20 -DMFS_AUTOLOAD -DMFS_ROOT=10 -DDEVFS -DMSDOSFS -DLFS -DNQNFS -DNFS -DFFS -DTCP_COMPAT_42 -DNETATALK -DIPTUNNEL -DIPXIP -DIPX -DINET -DDIAGNOSTIC -DMD5 -DCOMPAT_43 -DFAILSAFE -DKERNEL -include opt_global.h ../../pci/brooktree848.c // ../../pci/brooktree848.c: In function `video_ioctl': // ../../pci/brooktree848.c:1955: parse error before `par' // ../../pci/brooktree848.c:1961: `write' undeclared (first use this function) // ../../pci/brooktree848.c:1961: (Each undeclared identifier is reported only once // ../../pci/brooktree848.c:1961: for each function it appears in.) // ../../pci/brooktree848.c:1962: `i2c_addr' undeclared (first use this function) // ../../pci/brooktree848.c:1962: `i2c_port' undeclared (first use this function) // ../../pci/brooktree848.c:1962: `data' undeclared (first use this function) // ../../pci/brooktree848.c:1966: `par' undeclared (first use this function) // *** Error code 1 This is happening also in -stable, cvsuped yesterday !!! There are some vars definition after a case switch, which is invalid in ansi C. I've surrounded that case switch with '{}' to form a new block, and now it compiles, at least. Jonny -- Joao Carlos Mendes Luis jonny@gta.ufrj.br +55 21 290-4698 jonny@coppe.ufrj.br Universidade Federal do Rio de Janeiro UFRJ/COPPE/CISI PGP fingerprint: 29 C0 50 B9 B6 3E 58 F2 83 5F E3 26 BF 0F EA 67
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711100028.WAA15256>