all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: emacs-devel@gnu.org
Subject: Re: Prefer inline functions in character.h
Date: Fri, 17 Apr 2020 20:43:46 +0300	[thread overview]
Message-ID: <83mu7aatyl.fsf@gnu.org> (raw)

These changes break the 32-bit build --with-wide-int:

  keymap.c: In function 'Fkey_description':
  keymap.c:2067:45: warning: passing argument 2 of 'fetch_string_char_advance' from incompatible pointer type [-Wincompatible-pointer-types]
      int c = fetch_string_char_advance (list, &i, &i_byte);
					       ^
  In file included from keymap.c:48:0:
  character.h:416:1: note: expected 'ptrdiff_t * {aka int *}' but argument is of type 'EMACS_INT * {aka long long int *}'
   fetch_string_char_advance (Lisp_Object string,
   ^~~~~~~~~~~~~~~~~~~~~~~~~
  fns.c: In function 'mapcar1':
  fns.c:2631:44: warning: passing argument 2 of 'fetch_string_char_advance' from incompatible pointer type [-Wincompatible-pointer-types]
      int c = fetch_string_char_advance (seq, &i, &i_byte);
					      ^
  In file included from fns.c:32:0:
  character.h:416:1: note: expected 'ptrdiff_t * {aka int *}' but argument is of type 'EMACS_INT * {aka long long int *}'
   fetch_string_char_advance (Lisp_Object string,
   ^~~~~~~~~~~~~~~~~~~~~~~~~
  syntax.c: In function 'scan_lists':
  syntax.c:2676:14: warning: passing argument 1 of 'inc_both' from incompatible pointer type [-Wincompatible-pointer-types]
      inc_both (&from, &from_byte);
		^
  In file included from syntax.c:25:0:
  buffer.h:1649:1: note: expected 'ptrdiff_t * {aka int *}' but argument is of type 'EMACS_INT * {aka long long int *}'
   inc_both (ptrdiff_t *charpos, ptrdiff_t *bytepos)
   ^~~~~~~~
  syntax.c:2692:18: warning: passing argument 1 of 'inc_both' from incompatible pointer type [-Wincompatible-pointer-types]
	  inc_both (&from, &from_byte);
		    ^
  In file included from syntax.c:25:0:
  buffer.h:1649:1: note: expected 'ptrdiff_t * {aka int *}' but argument is of type 'EMACS_INT * {aka long long int *}'
   inc_both (ptrdiff_t *charpos, ptrdiff_t *bytepos)
   ^~~~~~~~
  syntax.c:2705:18: warning: passing argument 1 of 'inc_both' from incompatible pointer type [-Wincompatible-pointer-types]
	  inc_both (&from, &from_byte);
		    ^
  In file included from syntax.c:25:0:
  buffer.h:1649:1: note: expected 'ptrdiff_t * {aka int *}' but argument is of type 'EMACS_INT * {aka long long int *}'
   inc_both (ptrdiff_t *charpos, ptrdiff_t *bytepos)
   ^~~~~~~~
  syntax.c:2721:19: warning: passing argument 1 of 'inc_both' from incompatible pointer type [-Wincompatible-pointer-types]
	   inc_both (&from, &from_byte);
		     ^
  In file included from syntax.c:25:0:
  buffer.h:1649:1: note: expected 'ptrdiff_t * {aka int *}' but argument is of type 'EMACS_INT * {aka long long int *}'
   inc_both (ptrdiff_t *charpos, ptrdiff_t *bytepos)
   ^~~~~~~~
  syntax.c:2732:15: warning: passing argument 1 of 'inc_both' from incompatible pointer type [-Wincompatible-pointer-types]
       inc_both (&from, &from_byte);
		 ^
  In file included from syntax.c:25:0:
  buffer.h:1649:1: note: expected 'ptrdiff_t * {aka int *}' but argument is of type 'EMACS_INT * {aka long long int *}'
   inc_both (ptrdiff_t *charpos, ptrdiff_t *bytepos)
   ^~~~~~~~
  syntax.c:2754:18: warning: passing argument 1 of 'inc_both' from incompatible pointer type [-Wincompatible-pointer-types]
	  inc_both (&from, &from_byte);
		    ^
  In file included from syntax.c:25:0:
  buffer.h:1649:1: note: expected 'ptrdiff_t * {aka int *}' but argument is of type 'EMACS_INT * {aka long long int *}'
   inc_both (ptrdiff_t *charpos, ptrdiff_t *bytepos)
   ^~~~~~~~
  syntax.c:2763:15: warning: passing argument 1 of 'inc_both' from incompatible pointer type [-Wincompatible-pointer-types]
       inc_both (&from, &from_byte);
		 ^
  In file included from syntax.c:25:0:
  buffer.h:1649:1: note: expected 'ptrdiff_t * {aka int *}' but argument is of type 'EMACS_INT * {aka long long int *}'
   inc_both (ptrdiff_t *charpos, ptrdiff_t *bytepos)
   ^~~~~~~~
  syntax.c:2803:17: warning: passing argument 1 of 'inc_both' from incompatible pointer type [-Wincompatible-pointer-types]
	 inc_both (&from, &from_byte);
		   ^
  In file included from syntax.c:25:0:
  buffer.h:1649:1: note: expected 'ptrdiff_t * {aka int *}' but argument is of type 'EMACS_INT * {aka long long int *}'
   inc_both (ptrdiff_t *charpos, ptrdiff_t *bytepos)
   ^~~~~~~~
  syntax.c:2804:15: warning: passing argument 1 of 'inc_both' from incompatible pointer type [-Wincompatible-pointer-types]
       inc_both (&from, &from_byte);
		 ^
  In file included from syntax.c:25:0:
  buffer.h:1649:1: note: expected 'ptrdiff_t * {aka int *}' but argument is of type 'EMACS_INT * {aka long long int *}'
   inc_both (ptrdiff_t *charpos, ptrdiff_t *bytepos)
   ^~~~~~~~
  syntax.c:2807:18: warning: passing argument 1 of 'inc_both' from incompatible pointer type [-Wincompatible-pointer-types]
	  inc_both (&from, &from_byte);
		    ^
  In file included from syntax.c:25:0:
  buffer.h:1649:1: note: expected 'ptrdiff_t * {aka int *}' but argument is of type 'EMACS_INT * {aka long long int *}'
   inc_both (ptrdiff_t *charpos, ptrdiff_t *bytepos)
   ^~~~~~~~
  syntax.c:2832:14: warning: passing argument 1 of 'dec_both' from incompatible pointer type [-Wincompatible-pointer-types]
      dec_both (&from, &from_byte);
		^
  In file included from syntax.c:25:0:
  buffer.h:1659:1: note: expected 'ptrdiff_t * {aka int *}' but argument is of type 'EMACS_INT * {aka long long int *}'
   dec_both (ptrdiff_t *charpos, ptrdiff_t *bytepos)
   ^~~~~~~~
  syntax.c:2851:18: warning: passing argument 1 of 'dec_both' from incompatible pointer type [-Wincompatible-pointer-types]
	  dec_both (&from, &from_byte);
		    ^
  In file included from syntax.c:25:0:
  buffer.h:1659:1: note: expected 'ptrdiff_t * {aka int *}' but argument is of type 'EMACS_INT * {aka long long int *}'
   dec_both (ptrdiff_t *charpos, ptrdiff_t *bytepos)
   ^~~~~~~~
  syntax.c:2865:18: warning: passing argument 1 of 'dec_both' from incompatible pointer type [-Wincompatible-pointer-types]
	  dec_both (&from, &from_byte);
		    ^
  In file included from syntax.c:25:0:
  buffer.h:1659:1: note: expected 'ptrdiff_t * {aka int *}' but argument is of type 'EMACS_INT * {aka long long int *}'
   dec_both (ptrdiff_t *charpos, ptrdiff_t *bytepos)
   ^~~~~~~~
  syntax.c:2891:19: warning: passing argument 1 of 'dec_both' from incompatible pointer type [-Wincompatible-pointer-types]
	   dec_both (&from, &from_byte);
		     ^
  In file included from syntax.c:25:0:
  buffer.h:1659:1: note: expected 'ptrdiff_t * {aka int *}' but argument is of type 'EMACS_INT * {aka long long int *}'
   dec_both (ptrdiff_t *charpos, ptrdiff_t *bytepos)
   ^~~~~~~~
  syntax.c:2902:15: warning: passing argument 1 of 'dec_both' from incompatible pointer type [-Wincompatible-pointer-types]
       dec_both (&from, &from_byte);
		 ^
  In file included from syntax.c:25:0:
  buffer.h:1659:1: note: expected 'ptrdiff_t * {aka int *}' but argument is of type 'EMACS_INT * {aka long long int *}'
   dec_both (ptrdiff_t *charpos, ptrdiff_t *bytepos)
   ^~~~~~~~
  syntax.c:2915:17: warning: passing argument 1 of 'dec_both' from incompatible pointer type [-Wincompatible-pointer-types]
	 dec_both (&from, &from_byte);
		   ^
  In file included from syntax.c:25:0:
  buffer.h:1659:1: note: expected 'ptrdiff_t * {aka int *}' but argument is of type 'EMACS_INT * {aka long long int *}'
   dec_both (ptrdiff_t *charpos, ptrdiff_t *bytepos)
   ^~~~~~~~
  syntax.c:2958:15: warning: passing argument 1 of 'dec_both' from incompatible pointer type [-Wincompatible-pointer-types]
       dec_both (&from, &from_byte);
		 ^
  In file included from syntax.c:25:0:
  buffer.h:1659:1: note: expected 'ptrdiff_t * {aka int *}' but argument is of type 'EMACS_INT * {aka long long int *}'
   dec_both (ptrdiff_t *charpos, ptrdiff_t *bytepos)
   ^~~~~~~~
  syntax.c:2977:15: warning: passing argument 1 of 'dec_both' from incompatible pointer type [-Wincompatible-pointer-types]
       dec_both (&from, &from_byte);
		 ^
  In file included from syntax.c:25:0:
  buffer.h:1659:1: note: expected 'ptrdiff_t * {aka int *}' but argument is of type 'EMACS_INT * {aka long long int *}'
   dec_both (ptrdiff_t *charpos, ptrdiff_t *bytepos)
   ^~~~~~~~



             reply	other threads:[~2020-04-17 17:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-17 17:43 Eli Zaretskii [this message]
2020-04-17 22:00 ` Prefer inline functions in character.h Paul Eggert
2020-04-18  6:52   ` Eli Zaretskii

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

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

  git send-email \
    --in-reply-to=83mu7aatyl.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=eggert@cs.ucla.edu \
    --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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.