Bob Coyne <[EMAIL PROTECTED]> writes:

> I think it should say "Note: FOO declared special" rather
> than "Warning:..."
>
> The same information is conveyed with much less of a chance
> of alarming the newbie user.

The newbie user _should be alarmed_, because the newbie has just
invoked undefined behaviour.

  [EMAIL PROTECTED]:/tmp$ cat > foo.c
  void main () { }
  [EMAIL PROTECTED]:/tmp$ gcc foo.c
  foo.c: In function `main':
  foo.c:1: warning: return type of `main' is not `int'

I hope you're not about to argue that that should read
  foo.c:1: note: return type of `main' is not `int', but don't worry about it too 
much, you poor dear

Cheers,

Christophe
-- 
http://www-jcsu.jesus.cam.ac.uk/~csr21/       +44 1223 510 299/+44 7729 383 757
(set-pprint-dispatch 'number (lambda (s o) (declare (special b)) (format s b)))
(defvar b "~&Just another Lisp hacker~%")    (pprint #36rJesusCollegeCambridge)

Reply via email to