[5541] in Athena Bugs

home help back first fref pref prev next nref lref last post

rt 7.0F: silly ANSI violations in header files

daemon@ATHENA.MIT.EDU (Barr3y Jaspan)
Sun Jul 15 17:05:06 1990

To: bugs@ATHENA.MIT.EDU
Date: Sun, 15 Jul 90 17:04:50 EDT
From: Barr3y Jaspan <bjaspan@ATHENA.MIT.EDU>

System name:		steve-dallas
Type and version:	RTPC-ROMPC 7.0F
Display type:		apa16

What were you trying to do?

Compile a file with gcc -pedantic.

What's wrong:

gcc -g -pedantic -I/mit/sipb/include -c solarian.c
/usr/include/sys/types.h:48: warning: text following #endif violates ANSI standard
/usr/include/sys/types.h:107: warning: text following #else violates ANSI standard
/usr/include/sys/types.h:109: warning: text following #endif violates ANSI standard

I realize that Athena doesn't yet provide a full ANSI-compliant system
and that it is impractical to try to fix everything before 7.1.  But
there is simply no reason for this problem in types.h to exist,
particularly considering that it has been reported before.  It is a
really trivial fix.

What should have happened:

I should not have received the ANSI violation warning.

Someone should run a simple sed script over /usr/include and fix the
obvious occurrences of this problem.

Please describe any relevant documentation references:
	K&R Mark II

home help back first fref pref prev next nref lref last post