unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* More Emacs compilation warnings?
@ 2010-09-18 16:01 Lars Magne Ingebrigtsen
  2010-09-18 16:08 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-09-18 16:01 UTC (permalink / raw)
  To: emacs-devel

A thing just occurred to me about the int = PV thing -- why isn't this a
compilation warning?  Would there be too many false positives?  Or
doesn't a warning like that exist?

Let's see...

http://gcc.gnu.org/ml/gcc-help/2008-08/msg00024.html

-Wconversion -- it's apparently a somewhat newish option?

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: More Emacs compilation warnings?
  2010-09-18 16:01 More Emacs compilation warnings? Lars Magne Ingebrigtsen
@ 2010-09-18 16:08 ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-09-18 16:08 UTC (permalink / raw)
  To: emacs-devel

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Would there be too many false positives? 

I don't know about false positives, but adding -Wconversion certainly
adds enough warnings of the type:

dispnew.c:6060: warning: conversion to 'int' from 'Lisp_Object' may alter its value
dispnew.c:6106: warning: conversion to 'int' from 'long int' may alter its value
dispnew.c:6421: warning: conversion to 'int' from 'long int' may alter its value
dispnew.c:6422: warning: conversion to 'int' from 'long int' may alter its value
dispnew.c:6424: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result
dispnew.c:6424: warning: conversion to 'unsigned int' from 'long unsigned int' may alter its value
...

[larsi@quimbies ~/src/emacs/trunk/src]$ make 2>&1 | grep warning | wc -l
7152

Somebody has a lot of work to do.  :-)

(Or not.)

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-09-18 16:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-18 16:01 More Emacs compilation warnings? Lars Magne Ingebrigtsen
2010-09-18 16:08 ` Lars Magne Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).