unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: emacs-devel@gnu.org
Subject: Re: More Emacs compilation warnings?
Date: Sat, 18 Sep 2010 18:08:47 +0200	[thread overview]
Message-ID: <m3fwx7japc.fsf@quimbies.gnus.org> (raw)
In-Reply-To: m3lj6zjb11.fsf@quimbies.gnus.org

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




      reply	other threads:[~2010-09-18 16:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-18 16:01 More Emacs compilation warnings? Lars Magne Ingebrigtsen
2010-09-18 16:08 ` Lars Magne Ingebrigtsen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3fwx7japc.fsf@quimbies.gnus.org \
    --to=larsi@gnus.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).