all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 23.0.50; dbus
@ 2007-12-10 12:00 Peter Dyballa
  2007-12-10 12:24 ` William Xu
  2007-12-14 21:58 ` Michael Albinus
  0 siblings, 2 replies; 27+ messages in thread
From: Peter Dyballa @ 2007-12-10 12:00 UTC (permalink / raw)
  To: emacs-pretest-bug

Hello!

When I add to the configure option --with-dbus, config.log contains:

	configure:12064: checking for dbus-1 >= 1.0
	configure:12068: result: yes
	configure:12072: checking DBUS_CFLAGS
	configure:12075: result: -I/sw/include/dbus-1.0 -I/sw/lib/dbus-1.0/ 
include
	configure:12078: checking DBUS_LIBS
	configure:12081: result: -L/sw/lib -ldbus-1

but the dbus source code fails to compile because it uses  
declarations like

	uint dtype;

The type uint is not defined in Mac OS X, it knows of (from /usr/lib/ 
gcc/powerpc-apple-darwin8/4.0.1/include/stdint.h):

	typedef unsigned char uint8_t;
	typedef unsigned short uint16_t;
	typedef unsigned int uint32_t;
	typedef unsigned long long uint64_t;
	typedef unsigned long uintptr_t;
	typedef long long unsigned int uintmax_t;


--
Greetings

   Pete

A mathematician is a device for turning coffee into theorems.
				– Erdős Pál

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

* Re: 23.0.50; dbus
  2007-12-10 12:00 23.0.50; dbus Peter Dyballa
@ 2007-12-10 12:24 ` William Xu
  2007-12-10 12:47   ` Jason Rumney
  2007-12-14 21:58 ` Michael Albinus
  1 sibling, 1 reply; 27+ messages in thread
From: William Xu @ 2007-12-10 12:24 UTC (permalink / raw)
  To: emacs-devel; +Cc: emacs-pretest-bug

Peter Dyballa <Peter_Dyballa@Freenet.DE> writes:

> but the dbus source code fails to compile because it uses  declarations
> like
>
> 	uint dtype;
>
> The type uint is not defined in Mac OS X

Seems it's defined here: /usr/include/sys/types.h

,----
| typedef	unsigned int		uint;		/* Sys V compatibility */
`----

So this header file may need to be included for macosx if not yet.

-- 
William

http://williamxu.net9.org

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

* Re: 23.0.50; dbus
  2007-12-10 12:24 ` William Xu
@ 2007-12-10 12:47   ` Jason Rumney
  2007-12-10 12:56     ` Jason Rumney
  0 siblings, 1 reply; 27+ messages in thread
From: Jason Rumney @ 2007-12-10 12:47 UTC (permalink / raw)
  To: William Xu; +Cc: emacs-pretest-bug

William Xu wrote:
> Seems it's defined here: /usr/include/sys/types.h
>
> ,----
> | typedef	unsigned int		uint;		/* Sys V compatibility */
> `----
>   

Right, but the comment in the glibc include suggests that the name is
non-standard, and there only for compatibility:

*#ifdef __USE_MISC*
/* Old compatibility names for C types.  */
*typedef* *unsigned* *long* *int* ulong;
*typedef* *unsigned* *short* *int* ushort;
*typedef* *unsigned* *int* uint;
*#endif*


With other compilers, this definition may not exist, so the code should
be changed.

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

* Re: 23.0.50; dbus
  2007-12-10 12:47   ` Jason Rumney
@ 2007-12-10 12:56     ` Jason Rumney
  0 siblings, 0 replies; 27+ messages in thread
From: Jason Rumney @ 2007-12-10 12:56 UTC (permalink / raw)
  To: William Xu; +Cc: emacs-pretest-bug

Jason Rumney wrote:
> Right, but the comment in the glibc include suggests that the name is
> non-standard, and there only for compatibility:
>   

This time without ASCIIfied syntax highlighting:

#ifdef __USE_MISC
/* Old compatibility names for C types.  */
typedef unsigned long int ulong;
typedef unsigned short int ushort;
typedef unsigned int uint;
#endif

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

* Re: 23.0.50; dbus
  2007-12-10 12:00 23.0.50; dbus Peter Dyballa
  2007-12-10 12:24 ` William Xu
@ 2007-12-14 21:58 ` Michael Albinus
  2007-12-15 10:41   ` Peter Dyballa
  1 sibling, 1 reply; 27+ messages in thread
From: Michael Albinus @ 2007-12-14 21:58 UTC (permalink / raw)
  To: Peter Dyballa; +Cc: emacs-pretest-bug

Peter Dyballa <Peter_Dyballa@Freenet.DE> writes:

> Hello!

Hi,

> but the dbus source code fails to compile because it uses declarations
> like
>
> 	uint dtype;

I've changed it to "unsigned int". Where size matters, types like
"dbus_uint32_t" are already used.

> The type uint is not defined in Mac OS X

I would be interested in knowing how it runs there; could you, please,
give some feedback?

Best regards, Michael.

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

* Re: 23.0.50; dbus
  2007-12-14 21:58 ` Michael Albinus
@ 2007-12-15 10:41   ` Peter Dyballa
  2007-12-16 22:57     ` Michael Albinus
  0 siblings, 1 reply; 27+ messages in thread
From: Peter Dyballa @ 2007-12-15 10:41 UTC (permalink / raw)
  To: Michael Albinus; +Cc: emacs-pretest-bug


Am 14.12.2007 um 22:58 schrieb Michael Albinus:

>> but the dbus source code fails to compile because it uses  
>> declarations
>> like
>>
>> 	uint dtype;
>
> I've changed it to "unsigned int". Where size matters, types like
> "dbus_uint32_t" are already used.
>
>> The type uint is not defined in Mac OS X
>
> I would be interested in knowing how it runs there; could you, please,
> give some feedback?


Compiled fine, can launch, but no further idea how to use dbus!  
(Looks I can't be of further help since it looks to be something  
involved into remote connections. Except I login via ssh on my Mac a  
second time.)


During compilation these messages were reported:

dbusbind.c: In function ‘xd_retrieve_value’:
dbusbind.c:123: warning: incompatible implicit declaration of built- 
in function ‘sprintf’
dbusbind.c:126: warning: incompatible implicit declaration of built- 
in function ‘sprintf’
dbusbind.c:129: warning: incompatible implicit declaration of built- 
in function ‘sprintf’
dbusbind.c:132: warning: incompatible implicit declaration of built- 
in function ‘sprintf’
dbusbind.c:135: warning: incompatible implicit declaration of built- 
in function ‘sprintf’
dbusbind.c:136: warning: pointer targets in return differ in signedness
dbusbind.c:138: warning: incompatible implicit declaration of built- 
in function ‘sprintf’
dbusbind.c: In function ‘xd_retrieve_arg’:
dbusbind.c:159: warning: incompatible implicit declaration of built- 
in function ‘sprintf’
dbusbind.c:167: warning: incompatible implicit declaration of built- 
in function ‘sprintf’
dbusbind.c:175: warning: incompatible implicit declaration of built- 
in function ‘sprintf’
dbusbind.c:199: warning: incompatible implicit declaration of built- 
in function ‘sprintf’
dbusbind.c: In function ‘Fdbus_call_method’:
dbusbind.c:337: warning: incompatible implicit declaration of built- 
in function ‘sprintf’
dbusbind.c:350: warning: pointer targets in passing argument 1 of  
‘dbus_message_new_method_call’ differ in signedness
dbusbind.c:350: warning: pointer targets in passing argument 2 of  
‘dbus_message_new_method_call’ differ in signedness
dbusbind.c:350: warning: pointer targets in passing argument 3 of  
‘dbus_message_new_method_call’ differ in signedness
dbusbind.c:350: warning: pointer targets in passing argument 4 of  
‘dbus_message_new_method_call’ differ in signedness
dbusbind.c:364: warning: incompatible implicit declaration of built- 
in function ‘sprintf’
dbusbind.c:395: warning: incompatible implicit declaration of built- 
in function ‘sprintf’
dbusbind.c: In function ‘Fdbus_send_signal’:
dbusbind.c:480: warning: incompatible implicit declaration of built- 
in function ‘sprintf’
dbusbind.c:492: warning: pointer targets in passing argument 1 of  
‘dbus_message_new_signal’ differ in signedness
dbusbind.c:492: warning: pointer targets in passing argument 2 of  
‘dbus_message_new_signal’ differ in signedness
dbusbind.c:492: warning: pointer targets in passing argument 3 of  
‘dbus_message_new_signal’ differ in signedness
dbusbind.c:505: warning: incompatible implicit declaration of built- 
in function ‘sprintf’
dbusbind.c:531: warning: incompatible implicit declaration of built- 
in function ‘sprintf’
dbusbind.c: In function ‘xd_read_message’:
dbusbind.c:569: warning: incompatible implicit declaration of built- 
in function ‘sprintf’
dbusbind.c:578: warning: incompatible implicit declaration of built- 
in function ‘sprintf’
dbusbind.c:610: warning: pointer targets in passing argument 2 of  
‘strcmp’ differ in signedness
dbusbind.c:613: warning: pointer targets in passing argument 2 of  
‘strcmp’ differ in signedness
dbusbind.c: In function ‘Fdbus_register_signal’:
dbusbind.c:716: warning: pointer targets in passing argument 1 of  
‘strlen’ differ in signedness
dbusbind.c:717: warning: pointer targets in passing argument 1 of  
‘strcmp’ differ in signedness
dbusbind.c:718: warning: pointer targets in passing argument 1 of  
‘strncmp’ differ in signedness
dbusbind.c:727: warning: incompatible implicit declaration of built- 
in function ‘sprintf’

--
Mit friedvollen Grüßen

   Pete

A common mistake that people make when trying to design something  
completely foolproof is to underestimate the ingenuity of complete  
fools.

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

* Re: 23.0.50; dbus
  2007-12-15 10:41   ` Peter Dyballa
@ 2007-12-16 22:57     ` Michael Albinus
  2007-12-17 11:04       ` Peter Dyballa
                         ` (2 more replies)
  0 siblings, 3 replies; 27+ messages in thread
From: Michael Albinus @ 2007-12-16 22:57 UTC (permalink / raw)
  To: Peter Dyballa; +Cc: emacs-devel

Peter Dyballa <Peter_Dyballa@Freenet.DE> writes:

> Compiled fine, can launch, but no further idea how to use dbus! (Looks
> I can't be of further help since it looks to be something  involved
> into remote connections. Except I login via ssh on my Mac a  second
> time.)
>
> During compilation these messages were reported:

Should be better now. Could you, please, check?

D-Bus is not for remote connections; it is used for messaging between
applications on your local host.

Could you, please, evaluate the following forms:

(require 'dbus)

(dbus-get-unique-name :system)
(dbus-get-unique-name :session)

(dbus-list-names :system)
(dbus-list-names :session)

(dbus-list-known-names :system)
(dbus-list-known-names :session)

Best regards, Michael.

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

* Re: 23.0.50; dbus
  2007-12-16 22:57     ` Michael Albinus
@ 2007-12-17 11:04       ` Peter Dyballa
  2007-12-17 11:38         ` Michael Albinus
  2007-12-21  0:05         ` Stefan Monnier
  2007-12-23 16:10       ` Peter Dyballa
  2007-12-24 12:43       ` Peter Dyballa
  2 siblings, 2 replies; 27+ messages in thread
From: Peter Dyballa @ 2007-12-17 11:04 UTC (permalink / raw)
  To: Michael Albinus; +Cc: emacs-devel


Am 16.12.2007 um 23:57 schrieb Michael Albinus:

>> During compilation these messages were reported:
>
> Should be better now. Could you, please, check?


Was reduced to a few lines. Sorry, I have also some problems with  
font-backend in GNU Emacs 23.0.60, so *compilation* buffer has been  
overwritten! I'll report details for confirmation another time.

D-Bus activation will have to wait: too much to read and to make  
work! I found the D-Bus entry in the info system. Is Christmas OK?  
Could be a day or two earlier ...

--
Mit friedvollen Grüßen

   Pete

One person with a belief is a social power equal to ninety-nine who  
have only interests.
				– John Stuart Mill

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

* Re: 23.0.50; dbus
  2007-12-17 11:04       ` Peter Dyballa
@ 2007-12-17 11:38         ` Michael Albinus
  2007-12-21  0:05         ` Stefan Monnier
  1 sibling, 0 replies; 27+ messages in thread
From: Michael Albinus @ 2007-12-17 11:38 UTC (permalink / raw)
  To: Peter Dyballa; +Cc: emacs-devel

Peter Dyballa <Peter_Dyballa@freenet.de> writes:

> D-Bus activation will have to wait: too much to read and to make
> work! I found the D-Bus entry in the info system. Is Christmas OK?
> Could be a day or two earlier ...

There's no urgency.

Best regards, Michael.

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

* Re: 23.0.50; dbus
  2007-12-17 11:04       ` Peter Dyballa
  2007-12-17 11:38         ` Michael Albinus
@ 2007-12-21  0:05         ` Stefan Monnier
  2007-12-21 19:49           ` Richard Stallman
  1 sibling, 1 reply; 27+ messages in thread
From: Stefan Monnier @ 2007-12-21  0:05 UTC (permalink / raw)
  To: Peter Dyballa; +Cc: Michael Albinus, emacs-devel

> Is Christmas OK?  Could be a day or two earlier ...

Last I heard, Christmas is fine, and I haven't heard any rumors of it
coming earlier this year.


        Stefan

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

* Re: 23.0.50; dbus
  2007-12-21  0:05         ` Stefan Monnier
@ 2007-12-21 19:49           ` Richard Stallman
  0 siblings, 0 replies; 27+ messages in thread
From: Richard Stallman @ 2007-12-21 19:49 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Peter_Dyballa, michael.albinus, emacs-devel

    Last I heard, Christmas is fine, and I haven't heard any rumors of it
    coming earlier this year.

Grav-mass will happen on schedule on Dec 25.

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

* Re: 23.0.50; dbus
  2007-12-16 22:57     ` Michael Albinus
  2007-12-17 11:04       ` Peter Dyballa
@ 2007-12-23 16:10       ` Peter Dyballa
  2007-12-31 21:43         ` Michael Albinus
  2007-12-24 12:43       ` Peter Dyballa
  2 siblings, 1 reply; 27+ messages in thread
From: Peter Dyballa @ 2007-12-23 16:10 UTC (permalink / raw)
  To: Michael Albinus; +Cc: emacs-devel


Am 16.12.2007 um 23:57 schrieb Michael Albinus:

> Peter Dyballa <Peter_Dyballa@Freenet.DE> writes:
>
>> Compiled fine, can launch, but no further idea how to use dbus!  
>> (Looks
>> I can't be of further help since it looks to be something  involved
>> into remote connections. Except I login via ssh on my Mac a  second
>> time.)
>>
>> During compilation these messages were reported:
>
> Should be better now. Could you, please, check?

gcc -I/sw/include -L/sw/lib -c -DMAC_OSX  -no-cpp-precomp -I/usr/ 
include/openssl -I/sw/include/pango-1.0 -I/sw/lib/freetype219/include  
-I/sw/lib/freetype219/include/freetype2 -I/sw/lib/fontconfig2/include  
-I/sw/include -I/usr/local/include -idirafter /usr/X11R6/include - 
Demacs -DHAVE_CONFIG_H -DUSE_LUCID  -I. -I.../emacs/src -DMAC_OSX -I/ 
usr/X11R6/include -Dtemacs  -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/ 
include -I/sw/include/gtk-2.0 -I/sw/include/librsvg-2 -I/sw/include/ 
dbus-1.0 -I/sw/lib/dbus-1.0/include -bind_at_load -pipe -fPIC - 
mcpu=7450 -mtune=7450 -fast -mpim-altivec -ftree-vectorize -foptimize- 
register-move -freorder-blocks -freorder-blocks-and-partition - 
fthread-jumps -fpeephole -fno-crossjumping coding.c
coding.c: In function ‘encode_eol’:
coding.c:3466: warning: pointer targets in passing argument 1 of  
‘safe_bcopy’ differ in signedness
coding.c:3466: warning: pointer targets in passing argument 2 of  
‘safe_bcopy’ differ in signedness
coding.c:3475: warning: pointer targets in passing argument 1 of  
‘safe_bcopy’ differ in signedness
coding.c:3475: warning: pointer targets in passing argument 2 of  
‘safe_bcopy’ differ in signedness
coding.c: In function ‘code_convert_region’:
coding.c:5750: warning: pointer targets in passing argument 1 of  
‘safe_bcopy’ differ in signedness
coding.c:5750: warning: pointer targets in passing argument 2 of  
‘safe_bcopy’ differ in signedness
coding.c:5970: warning: pointer targets in passing argument 1 of  
‘safe_bcopy’ differ in signedness
coding.c:5970: warning: pointer targets in passing argument 2 of  
‘safe_bcopy’ differ in signedness


gcc -I/sw/include -L/sw/lib -c -DMAC_OSX  -no-cpp-precomp -I/usr/ 
include/openssl -I/sw/include/pango-1.0 -I/sw/lib/freetype219/include  
-I/sw/lib/freetype219/include/freetype2 -I/sw/lib/fontconfig2/include  
-I/sw/include -I/usr/local/include -idirafter /usr/X11R6/include - 
Demacs -DHAVE_CONFIG_H -DUSE_LUCID  -I. -I/.../emacs/src -DMAC_OSX -I/ 
usr/X11R6/include -Dtemacs  -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/ 
include -I/sw/include/gtk-2.0 -I/sw/include/librsvg-2 -I/sw/include/ 
dbus-1.0 -I/sw/lib/dbus-1.0/include -bind_at_load -pipe -fPIC - 
mcpu=7450 -mtune=7450 -fast -mpim-altivec -ftree-vectorize -foptimize- 
register-move -freorder-blocks -freorder-blocks-and-partition - 
fthread-jumps -fpeephole -fno-crossjumping dbusbind.c
dbusbind.c: In function ‘xd_append_arg’:
dbusbind.c:344: warning: pointer targets in assignment differ in  
signedness
dbusbind.c:350: warning: pointer targets in assignment differ in  
signedness
dbusbind.c:392: warning: pointer targets in assignment differ in  
signedness
dbusbind.c: In function ‘xd_read_message’:
dbusbind.c:983: warning: pointer targets in passing argument 2 of  
‘strcmp’ differ in signedness
dbusbind.c:986: warning: pointer targets in passing argument 2 of  
‘strcmp’ differ in signedness
dbusbind.c: In function ‘Fdbus_register_signal’:
dbusbind.c:1089: warning: pointer targets in passing argument 1 of  
‘strlen’ differ in signedness
dbusbind.c:1090: warning: pointer targets in passing argument 1 of  
‘strcmp’ differ in signedness
dbusbind.c:1091: warning: pointer targets in passing argument 1 of  
‘strncmp’ differ in signedness
dbusbind.c:1104: warning: pointer targets in passing argument 1 of  
‘strlen’ differ in signedness

>
> Could you, please, evaluate the following forms:
>
> (require 'dbus)

dbus

>
> (dbus-get-unique-name :system)

For example: ":1.2"

> (dbus-get-unique-name :session)

":1.0"

>
> (dbus-list-names :system)

("org.freedesktop.DBus" ":1.1" ":1.2")
("org.freedesktop.DBus" ":1.2")


> (dbus-list-names :session)

("org.freedesktop.DBus" ":1.0")

>
> (dbus-list-known-names :system)

("org.freedesktop.DBus")

> (dbus-list-known-names :session)

("org.freedesktop.DBus")


Seems I need to extend my ~/.login script by

	eval `/sw/bin/start-session-bus.sh --csh-syntax`

--
Mit friedvollen Grüßen

   Pete

Stop-and-go:
	Bezeichnung für die vergeblichen Bemühungen
	der Outomobilistinnen, durch "Stop" schneller
	zu sein als die Fußgängerinnen durch "Go."

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

* Re: 23.0.50; dbus
  2007-12-16 22:57     ` Michael Albinus
  2007-12-17 11:04       ` Peter Dyballa
  2007-12-23 16:10       ` Peter Dyballa
@ 2007-12-24 12:43       ` Peter Dyballa
  2 siblings, 0 replies; 27+ messages in thread
From: Peter Dyballa @ 2007-12-24 12:43 UTC (permalink / raw)
  To: Michael Albinus; +Cc: emacs-devel


Am 16.12.2007 um 23:57 schrieb Michael Albinus:

> Could you, please, evaluate the following forms:


Works also in GNU Emacs 23.0.60!

--
Mit friedvollen Grüßen

   Pete

Mit Jazz statt Bomben gegen die Taliban!

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

* Re: 23.0.50; dbus
  2007-12-23 16:10       ` Peter Dyballa
@ 2007-12-31 21:43         ` Michael Albinus
  2007-12-31 22:26           ` Andreas Schwab
  2008-01-02  3:06           ` Stefan Monnier
  0 siblings, 2 replies; 27+ messages in thread
From: Michael Albinus @ 2007-12-31 21:43 UTC (permalink / raw)
  To: Peter Dyballa; +Cc: emacs-devel

Peter Dyballa <Peter_Dyballa@Freenet.DE> writes:

> gcc -I/sw/include -L/sw/lib -c -DMAC_OSX  -no-cpp-precomp -I/usr/
> include/openssl -I/sw/include/pango-1.0 -I/sw/lib/freetype219/include
> -I/sw/lib/freetype219/include/freetype2 -I/sw/lib/fontconfig2/include
> -I/sw/include -I/usr/local/include -idirafter /usr/X11R6/include - 
> Demacs -DHAVE_CONFIG_H -DUSE_LUCID  -I. -I/.../emacs/src -DMAC_OSX -I/
> usr/X11R6/include -Dtemacs  -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/
> include -I/sw/include/gtk-2.0 -I/sw/include/librsvg-2 -I/sw/include/
> dbus-1.0 -I/sw/lib/dbus-1.0/include -bind_at_load -pipe -fPIC -
> mcpu=7450 -mtune=7450 -fast -mpim-altivec -ftree-vectorize -foptimize-
> register-move -freorder-blocks -freorder-blocks-and-partition -
> fthread-jumps -fpeephole -fno-crossjumping dbusbind.c
> dbusbind.c: In function ‘xd_append_arg’:
> dbusbind.c:344: warning: pointer targets in assignment differ in
> signedness
> dbusbind.c:350: warning: pointer targets in assignment differ in
> signedness
> dbusbind.c:392: warning: pointer targets in assignment differ in
> signedness

These problems shall be fixed now, too.

> dbusbind.c: In function ‘xd_read_message’:
> dbusbind.c:983: warning: pointer targets in passing argument 2 of
> strcmp’ differ in signedness
> dbusbind.c:986: warning: pointer targets in passing argument 2 of
> strcmp’ differ in signedness
> dbusbind.c: In function ‘Fdbus_register_signal’:
> dbusbind.c:1089: warning: pointer targets in passing argument 1 of
> strlen’ differ in signedness
> dbusbind.c:1090: warning: pointer targets in passing argument 1 of
> strcmp’ differ in signedness
> dbusbind.c:1091: warning: pointer targets in passing argument 1 of
> strncmp’ differ in signedness
> dbusbind.c:1104: warning: pointer targets in passing argument 1 of
> strlen’ differ in signedness

Here I'm lost. I use something like

  if (NILP (uname) || (strlen (SDATA (uname)) > 0))

uname is a Lisp_Object. SDATA (uname) returns (char *). What kind of
signedness do I break in strlen? Does anybody have an idea?

>> (dbus-get-unique-name :system)
>
> For example: ":1.2"
>
>> (dbus-get-unique-name :session)
>
> ":1.0"
>
>>
>> (dbus-list-names :system)
>
> ("org.freedesktop.DBus" ":1.1" ":1.2")
> ("org.freedesktop.DBus" ":1.2")
>
>
>> (dbus-list-names :session)
>
> ("org.freedesktop.DBus" ":1.0")
>
>>
>> (dbus-list-known-names :system)
>
> ("org.freedesktop.DBus")
>
>> (dbus-list-known-names :session)
>
> ("org.freedesktop.DBus")

All this means that dbusbind.c is working and there is no other D-Bus
application running. Too bad ...

Best regards, Michael.

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

* Re: 23.0.50; dbus
  2007-12-31 21:43         ` Michael Albinus
@ 2007-12-31 22:26           ` Andreas Schwab
  2008-01-01 10:46             ` Michael Albinus
  2008-01-02  3:06           ` Stefan Monnier
  1 sibling, 1 reply; 27+ messages in thread
From: Andreas Schwab @ 2007-12-31 22:26 UTC (permalink / raw)
  To: Michael Albinus; +Cc: Peter Dyballa, emacs-devel

Michael Albinus <michael.albinus@gmx.de> writes:

> Here I'm lost. I use something like
>
>   if (NILP (uname) || (strlen (SDATA (uname)) > 0))
>
> uname is a Lisp_Object. SDATA (uname) returns (char *).

No, it returns (unsigned char *).

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

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

* Re: 23.0.50; dbus
  2007-12-31 22:26           ` Andreas Schwab
@ 2008-01-01 10:46             ` Michael Albinus
  2008-01-01 11:28               ` Peter Dyballa
  0 siblings, 1 reply; 27+ messages in thread
From: Michael Albinus @ 2008-01-01 10:46 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: Peter Dyballa, emacs-devel

Andreas Schwab <schwab@suse.de> writes:

> Michael Albinus <michael.albinus@gmx.de> writes:
>
>> Here I'm lost. I use something like
>>
>>   if (NILP (uname) || (strlen (SDATA (uname)) > 0))
>>
>> uname is a Lisp_Object. SDATA (uname) returns (char *).
>
> No, it returns (unsigned char *).

Yes, indeed. But then many src/*.c files should result in the same
compiler warning under MacOS X, because they use str* functions with
SDATA (x) as argument.

I tend to ignore the compiler warning. Or is there still something
obvious I don't see?

> Andreas.

Best regards, Michael.

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

* Re: 23.0.50; dbus
  2008-01-01 10:46             ` Michael Albinus
@ 2008-01-01 11:28               ` Peter Dyballa
  0 siblings, 0 replies; 27+ messages in thread
From: Peter Dyballa @ 2008-01-01 11:28 UTC (permalink / raw)
  To: Michael Albinus; +Cc: Andreas Schwab, emacs-devel


Am 01.01.2008 um 11:46 schrieb Michael Albinus:

> Andreas Schwab writes:
>
>> Michael Albinus writes:
>>
>>> Here I'm lost. I use something like
>>>
>>>   if (NILP (uname) || (strlen (SDATA (uname)) > 0))
>>>
>>> uname is a Lisp_Object. SDATA (uname) returns (char *).
>>
>> No, it returns (unsigned char *).
>
> Yes, indeed. But then many src/*.c files should result in the same
> compiler warning under MacOS X, because they use str* functions with
> SDATA (x) as argument.


There are a few more messages:

.../emacs/lwlib/lwlib.c: In function ‘malloc_widget_value’:
.../emacs/lwlib/lwlib.c:194: warning: passing argument 1 of  
‘lwlib_memset’ from incompatible pointer type
.../emacs/lwlib/lwlib.c: In function ‘destroy_one_instance’:
.../emacs/lwlib/lwlib.c:372: warning: passing argument 1 of  
‘lwlib_memset’ from incompatible pointer type
.../emacs/lwlib/lwlib.c: In function ‘lw_destroy_all_widgets’:
.../emacs/lwlib/lwlib.c:322: warning: passing argument 1 of  
‘lwlib_memset’ from incompatible pointer type
.../emacs/lwlib/lwlib.c: In function ‘copy_widget_value_tree’:
.../emacs/lwlib/lwlib.c:194: warning: passing argument 1 of  
‘lwlib_memset’ from incompatible pointer type

dispnew.c: In function ‘Fopen_termscript’:
dispnew.c:6427: warning: pointer targets in passing argument 1 of  
‘fopen’ differ in signedness

frame.c: In function ‘Fmake_terminal_frame’:
frame.c:730: warning: pointer targets in passing argument 2 of  
‘strncpy’ differ in signedness
frame.c:741: warning: pointer targets in passing argument 2 of  
‘strncpy’ differ in signedness
frame.c: In function ‘Fframe_parameters’:
frame.c:2374: warning: pointer targets in passing argument 1 of  
‘strncmp’ differ in signedness
frame.c:2378: warning: pointer targets in passing argument 1 of  
‘strncmp’ differ in signedness
frame.c:2388: warning: pointer targets in passing argument 1 of  
‘strncmp’ differ in signedness
frame.c:2392: warning: pointer targets in passing argument 1 of  
‘strncmp’ differ in signedness
frame.c: In function ‘Fframe_parameter’:
frame.c:2480: warning: pointer targets in assignment differ in  
signedness
frame.c:2489: warning: pointer targets in assignment differ in  
signedness
frame.c: In function ‘x_set_font’:
frame.c:3365: warning: pointer targets in passing argument 2 of  
‘x_new_fontset’ differ in signedness
frame.c:3366: warning: pointer targets in passing argument 2 of  
‘x_new_font’ differ in signedness
frame.c: In function ‘xrdb_get_resource’:
frame.c:3707: warning: pointer targets in passing argument 2 of  
‘strcpy’ differ in signedness
frame.c:3708: warning: pointer targets in passing argument 2 of  
‘strcpy’ differ in signedness
frame.c:3711: warning: pointer targets in passing argument 2 of  
‘strcat’ differ in signedness
frame.c:3716: warning: pointer targets in passing argument 2 of  
‘strcat’ differ in signedness
frame.c:3719: warning: pointer targets in passing argument 2 of  
‘strcat’ differ in signedness
frame.c:3723: warning: pointer targets in passing argument 2 of  
‘strcat’ differ in signedness
frame.c: In function ‘x_get_arg’:
frame.c:3849: warning: pointer targets in passing argument 1 of  
‘atoi’ differ in signedness
frame.c:3852: warning: pointer targets in passing argument 1 of  
‘atof’ differ in signedness
frame.c:3856: warning: pointer targets in passing argument 1 of  
‘strcmp’ differ in signedness
frame.c:3857: warning: pointer targets in passing argument 1 of  
‘strcmp’ differ in signedness
frame.c:3871: warning: pointer targets in passing argument 1 of  
‘strcmp’ differ in signedness
frame.c:3872: warning: pointer targets in passing argument 1 of  
‘strcmp’ differ in signedness
frame.c:3874: warning: pointer targets in passing argument 1 of  
‘strcmp’ differ in signedness
frame.c:3875: warning: pointer targets in passing argument 1 of  
‘strcmp’ differ in signedness
frame.c: In function ‘store_frame_param’:
frame.c:2231: warning: pointer targets in passing argument 1 of  
‘frame_name_fnn_p’ differ in signedness
frame.c:2249: warning: pointer targets in passing argument 1 of  
‘frame_name_fnn_p’ differ in signedness

xdisp.c: In function ‘c_string_pos’:
xdisp.c:1468: warning: pointer targets in passing argument 1 of  
‘strlen’ differ in signedness
xdisp.c: In function ‘number_of_chars’:
xdisp.c:1499: warning: pointer targets in passing argument 1 of  
‘strlen’ differ in signedness
xdisp.c:1509: warning: pointer targets in passing argument 1 of  
‘strlen’ differ in signedness
xdisp.c: In function ‘init_from_display_pos’:
xdisp.c:2866: warning: pointer targets in initialization differ in  
signedness
xdisp.c: In function ‘reseat_to_string’:
xdisp.c:5499: warning: pointer targets in passing argument 1 of  
‘strlen’ differ in signedness
xdisp.c: In function ‘next_element_from_c_string’:
xdisp.c:6199: warning: pointer targets in passing argument 1 of  
‘strlen’ differ in signedness
xdisp.c: In function ‘message_dolog’:
xdisp.c:7372: warning: pointer targets in passing argument 1 of  
‘string_char_and_length’ differ in signedness
xdisp.c:7395: warning: pointer targets in passing argument 1 of  
‘insert_1’ differ in signedness
xdisp.c:7400: warning: pointer targets in passing argument 1 of  
‘insert_1’ differ in signedness
xdisp.c:7430: warning: pointer targets in passing argument 1 of  
‘insert_1’ differ in signedness
xdisp.c: In function ‘message_log_check_duplicate’:
xdisp.c:7515: warning: pointer targets in passing argument 1 of  
‘strncmp’ differ in signedness
xdisp.c: In function ‘set_message_1’:
xdisp.c:8673: warning: pointer targets in passing argument 1 of  
‘string_char_and_length’ differ in signedness
xdisp.c:8697: warning: pointer targets in passing argument 1 of  
‘insert_1’ differ in signedness
xdisp.c: In function ‘store_mode_line_noprop’:
xdisp.c:9012: warning: pointer targets in passing argument 1 of  
‘strlen’ differ in signedness
xdisp.c: In function ‘display_menu_bar’:
xdisp.c:16621: warning: pointer targets in passing argument 1 of  
‘display_string’ differ in signedness
xdisp.c: In function ‘display_mode_line’:
xdisp.c:16784: warning: pointer targets in passing argument 1 of  
‘display_string’ differ in signedness
xdisp.c: In function ‘display_mode_element’:
xdisp.c:17073: warning: pointer targets in assignment differ in  
signedness
xdisp.c:17083: warning: pointer targets in passing argument 1 of  
‘strlen’ differ in signedness
xdisp.c:17084: warning: pointer targets in passing argument 1 of  
‘make_string’ differ in signedness
xdisp.c:17294: warning: pointer targets in passing argument 1 of  
‘store_mode_line_noprop’ differ in signedness
xdisp.c:17301: warning: pointer targets in passing argument 1 of  
‘display_string’ differ in signedness
xdisp.c: In function ‘calc_pixel_width_or_height’:
xdisp.c:18652: warning: pointer targets in initialization differ in  
signedness

charset.c: In function ‘str_as_multibyte’:
charset.c:1547: warning: pointer targets in passing argument 1 of  
‘safe_bcopy’ differ in signedness
charset.c:1547: warning: pointer targets in passing argument 2 of  
‘safe_bcopy’ differ in signedness
charset.c: In function ‘str_to_multibyte’:
charset.c:1605: warning: pointer targets in passing argument 1 of  
‘safe_bcopy’ differ in signedness
charset.c:1605: warning: pointer targets in passing argument 2 of  
‘safe_bcopy’ differ in signedness
charset.c: In function ‘Fstring’:
charset.c:1676: warning: pointer targets in passing argument 1 of  
‘make_string_from_bytes’ differ in signedness

coding.c: In function ‘encode_eol’:
coding.c:3466: warning: pointer targets in passing argument 1 of  
‘safe_bcopy’ differ in signedness
coding.c:3466: warning: pointer targets in passing argument 2 of  
‘safe_bcopy’ differ in signedness
coding.c:3475: warning: pointer targets in passing argument 1 of  
‘safe_bcopy’ differ in signedness
coding.c:3475: warning: pointer targets in passing argument 2 of  
‘safe_bcopy’ differ in signedness
coding.c: In function ‘code_convert_region’:
coding.c:5750: warning: pointer targets in passing argument 1 of  
‘safe_bcopy’ differ in signedness
coding.c:5750: warning: pointer targets in passing argument 2 of  
‘safe_bcopy’ differ in signedness
coding.c:5970: warning: pointer targets in passing argument 1 of  
‘safe_bcopy’ differ in signedness
coding.c:5970: warning: pointer targets in passing argument 2 of  
‘safe_bcopy’ differ in signedness

ccl.c: In function ‘Fccl_execute_on_string’:
ccl.c:2275: warning: pointer targets in passing argument 3 of  
‘ccl_driver’ differ in signedness
ccl.c:2285: warning: pointer targets in passing argument 1 of  
‘str_as_multibyte’ differ in signedness

term.c: In function ‘init_tty’:
term.c:3520: warning: passing argument 5 of ‘maybe_fatal’ makes  
pointer from integer without a cast
term.c:3520: warning: passing argument 6 of ‘maybe_fatal’ makes  
pointer from integer without a cast

xfaces.c: In function ‘load_pixmap’:
xfaces.c:1178: warning: pointer targets in passing argument 2 of  
‘x_create_bitmap_from_data’ differ in signedness
xfaces.c: In function ‘face_color_supported_p’:
xfaces.c:1518: warning: pointer targets in passing argument 1 of  
‘xstricmp’ differ in signedness
xfaces.c:1518: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
xfaces.c:1519: warning: pointer targets in passing argument 1 of  
‘xstricmp’ differ in signedness
xfaces.c:1519: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
xfaces.c: In function ‘Fcolor_gray_p’:
xfaces.c:1545: warning: pointer targets in passing argument 2 of  
‘face_color_gray_p’ differ in signedness
xfaces.c: In function ‘load_color’:
xfaces.c:1601: warning: pointer targets in passing argument 2 of  
‘defined_color’ differ in signedness
xfaces.c: In function ‘split_font_name’:
xfaces.c:2309: warning: pointer targets in passing argument 1 of  
‘xstrlwr’ differ in signedness
xfaces.c:2309: warning: pointer targets in initialization differ in  
signedness
xfaces.c: In function ‘x_face_list_fonts’:
xfaces.c:2492: warning: pointer targets in initialization differ in  
signedness
xfaces.c:2548: warning: pointer targets in passing argument 1 of  
‘strcmp’ differ in signedness
xfaces.c:2564: warning: pointer targets in passing argument 1 of  
‘strcmp’ differ in signedness
xfaces.c:2566: warning: pointer targets in passing argument 2 of  
‘x_face_list_fonts’ differ in signedness
xfaces.c: In function ‘resolve_face_name’:
xfaces.c:3251: warning: pointer targets in passing argument 1 of  
‘intern’ differ in signedness
xfaces.c: In function ‘set_lface_from_font_name’:
xfaces.c:3398: warning: pointer targets in initialization differ in  
signedness
xfaces.c:3404: warning: pointer targets in assignment differ in  
signedness
xfaces.c: In function ‘face_boolean_x_resource_value’:
xfaces.c:4636: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
xfaces.c:4637: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
xfaces.c:4639: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
xfaces.c:4640: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
xfaces.c:4642: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
xfaces.c: In function ‘Finternal_set_lisp_face_attribute_from_resource’:
xfaces.c:4662: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
xfaces.c:4673: warning: pointer targets in passing argument 1 of  
‘intern’ differ in signedness
xfaces.c: In function ‘x_update_menu_appearance’:
xfaces.c:4719: warning: pointer targets in initialization differ in  
signedness
xfaces.c: In function ‘Fcolor_distance’:
xfaces.c:5367: warning: pointer targets in passing argument 2 of  
‘defined_color’ differ in signedness
xfaces.c:5370: warning: pointer targets in passing argument 2 of  
‘defined_color’ differ in signedness
xfaces.c: In function ‘choose_face_font’:
xfaces.c:6911: warning: pointer targets in passing argument 1 of  
‘xstrdup’ differ in signedness

xterm.c: In function ‘x_draw_fringe_bitmap’:
xterm.c:818: warning: pointer targets in passing argument 3 of  
‘XCreatePixmapFromBitmapData’ differ in signedness
xterm.c:825: warning: pointer targets in passing argument 3 of  
‘XCreatePixmapFromBitmapData’ differ in signedness
xterm.c: In function ‘handle_one_xevent’:
xterm.c:6320: warning: pointer targets in passing argument 3 of  
‘XmbLookupString’ differ in signedness
xterm.c:6328: warning: pointer targets in passing argument 3 of  
‘XmbLookupString’ differ in signedness
xterm.c:6366: warning: pointer targets in passing argument 2 of  
‘XLookupString’ differ in signedness
xterm.c: In function ‘x_bitmap_icon’:
xterm.c:7561: warning: pointer targets in passing argument 2 of  
‘x_create_bitmap_from_data’ differ in signedness
xterm.c: In function ‘x_new_fontset’:
xterm.c:8095: warning: pointer targets in passing argument 2 of  
‘x_new_font’ differ in signedness
xterm.c:8107: warning: pointer targets in passing argument 2 of  
‘xic_set_xfontset’ differ in signedness
xterm.c: In function ‘x_list_fonts’:
xterm.c:9828: warning: pointer targets in passing argument 2 of  
‘XLoadQueryFont’ differ in signedness
xterm.c:9877: warning: pointer targets in passing argument 2 of  
‘XListFonts’ differ in signedness
xterm.c:9891: warning: pointer targets in passing argument 2 of  
‘XListFonts’ differ in signedness
xterm.c:9995: warning: pointer targets in passing argument 2 of  
‘XLoadQueryFont’ differ in signedness
xterm.c: In function ‘x_load_font’:
xterm.c:10174: warning: pointer targets in passing argument 2 of  
‘strcmp’ differ in signedness
xterm.c:10176: warning: pointer targets in passing argument 2 of  
‘strcmp’ differ in signedness
xterm.c: In function ‘x_query_font’:
xterm.c:10408: warning: pointer targets in passing argument 1 of  
‘xstricmp’ differ in signedness
xterm.c:10408: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
xterm.c:10409: warning: pointer targets in passing argument 1 of  
‘xstricmp’ differ in signedness
xterm.c:10409: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
xterm.c: In function ‘same_x_server’:
xterm.c:10494: warning: pointer targets in passing argument 1 of  
‘strlen’ differ in signedness
xterm.c:10507: warning: pointer targets in passing argument 2 of  
‘strncmp’ differ in signedness
xterm.c:10510: warning: pointer targets in passing argument 2 of  
‘strncmp’ differ in signedness
xterm.c:10514: warning: pointer targets in passing argument 2 of  
‘strncmp’ differ in signedness
xterm.c:10517: warning: pointer targets in passing argument 2 of  
‘strncmp’ differ in signedness
xterm.c: In function ‘x_term_init’:
xterm.c:10604: warning: pointer targets in passing argument 1 of  
‘x_display_ok’ differ in signedness
xterm.c:10702: warning: pointer targets in passing argument 2 of  
‘XtOpenDisplay’ differ in signedness
xterm.c:10783: warning: pointer targets in passing argument 2 of  
‘strncpy’ differ in signedness
xterm.c:10879: warning: pointer targets in passing argument 1 of  
‘strcmp’ differ in signedness
xterm.c:10880: warning: pointer targets in passing argument 1 of  
‘strcmp’ differ in signedness
xterm.c:11052: warning: pointer targets in passing argument 1 of  
‘strcmp’ differ in signedness
xterm.c:11053: warning: pointer targets in passing argument 1 of  
‘strcmp’ differ in signedness
xterm.c:11065: warning: pointer targets in passing argument 1 of  
‘strcmp’ differ in signedness
xterm.c:11066: warning: pointer targets in passing argument 1 of  
‘strcmp’ differ in signedness
xterm.c:10738: warning: pointer targets in passing argument 1 of  
‘same_x_server’ differ in signedness
xterm.c:10738: warning: pointer targets in passing argument 2 of  
‘same_x_server’ differ in signedness

xfns.c:149: warning: pointer targets in initialization differ in  
signedness
xfns.c: In function ‘x_decode_color’:
xfns.c:777: warning: pointer targets in passing argument 2 of  
‘x_defined_color’ differ in signedness
xfns.c: In function ‘x_set_name’:
xfns.c:1728: warning: pointer targets in passing argument 2 of  
‘strcmp’ differ in signedness
xfns.c: In function ‘x_make_gc’:
xfns.c:3032: warning: pointer targets in passing argument 3 of  
‘XCreatePixmapFromBitmapData’ differ in signedness
xfns.c: In function ‘Fx_create_frame’:
xfns.c:3305: warning: pointer targets in passing argument 2 of  
‘x_new_fontset’ differ in signedness
xfns.c:3307: warning: pointer targets in passing argument 2 of  
‘x_new_font’ differ in signedness
xfns.c: In function ‘Fxw_color_defined_p’:
xfns.c:3602: warning: pointer targets in passing argument 2 of  
‘x_defined_color’ differ in signedness
xfns.c: In function ‘Fxw_color_values’:
xfns.c:3618: warning: pointer targets in passing argument 2 of  
‘x_defined_color’ differ in signedness
xfns.c: In function ‘select_visual’:
xfns.c:4040: warning: pointer targets in passing argument 2 of  
‘strcpy’ differ in signedness
xfns.c:4054: warning: pointer targets in passing argument 1 of  
‘xstricmp’ differ in signedness
xfns.c:4054: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
xfns.c: In function ‘Fx_open_connection’:
xfns.c:4165: warning: pointer targets in passing argument 2 of  
‘x_term_init’ differ in signedness
xfns.c: In function ‘Fx_change_window_property’:
xfns.c:4323: warning: pointer targets in passing argument 2 of  
‘XInternAtom’ differ in signedness
xfns.c:4327: warning: pointer targets in passing argument 2 of  
‘XInternAtom’ differ in signedness
xfns.c: In function ‘Fx_delete_window_property’:
xfns.c:4359: warning: pointer targets in passing argument 2 of  
‘XInternAtom’ differ in signedness
xfns.c: In function ‘Fx_window_property’:
xfns.c:4420: warning: pointer targets in passing argument 2 of  
‘strcmp’ differ in signedness
xfns.c:4423: warning: pointer targets in passing argument 2 of  
‘XInternAtom’ differ in signedness
xfns.c:4426: warning: pointer targets in passing argument 2 of  
‘XInternAtom’ differ in signedness
xfns.c:4471: warning: pointer targets in passing argument 1 of  
‘make_string’ differ in signedness
xfns.c: In function ‘x_create_tip_frame’:
xfns.c:4870: warning: pointer targets in passing argument 2 of  
‘x_new_fontset’ differ in signedness
xfns.c:4872: warning: pointer targets in passing argument 2 of  
‘x_new_font’ differ in signedness

xselect.c: In function ‘Fx_send_client_event’:
xselect.c:2880: warning: pointer targets in passing argument 1 of  
‘strcmp’ differ in signedness
xselect.c:2882: warning: pointer targets in passing argument 1 of  
‘strcmp’ differ in signedness
xselect.c:2910: warning: pointer targets in passing argument 2 of  
‘XInternAtom’ differ in signedness

fontset.c: In function ‘font_family_registry’:
fontset.c:433: warning: pointer targets in initialization differ in  
signedness
fontset.c: In function ‘fontset_font_pattern’:
fontset.c:628: warning: pointer targets in passing argument 3 of  
‘fs_load_font’ differ in signedness
fontset.c: In function ‘fs_load_font’:
fontset.c:687: warning: pointer targets in assignment differ in  
signedness
fontset.c: In function ‘fontset_pattern_regexp’:
fontset.c:800: warning: pointer targets in passing argument 1 of  
‘index’ differ in signedness
fontset.c:801: warning: pointer targets in passing argument 1 of  
‘index’ differ in signedness
fontset.c:806: warning: pointer targets in passing argument 1 of  
‘strcmp’ differ in signedness
fontset.c:806: warning: pointer targets in passing argument 2 of  
‘strcmp’ differ in signedness
fontset.c:847: warning: pointer targets in passing argument 1 of  
‘build_string’ differ in signedness
fontset.c:848: warning: pointer targets in passing argument 1 of  
‘build_string’ differ in signedness
fontset.c: In function ‘fs_query_fontset’:
fontset.c:898: warning: pointer targets in passing argument 1 of  
‘strcmp’ differ in signedness
fontset.c:898: warning: pointer targets in passing argument 2 of  
‘strcmp’ differ in signedness
fontset.c: In function ‘list_fontsets’:
fontset.c:963: warning: pointer targets in passing argument 1 of  
‘strcmp’ differ in signedness
fontset.c:963: warning: pointer targets in passing argument 2 of  
‘strcmp’ differ in signedness
fontset.c: In function ‘Ffont_info’:
fontset.c:1239: warning: pointer targets in passing argument 2 of  
‘query_font_func’ differ in signedness
fontset.c: In function ‘Ffontset_info’:
fontset.c:1521: warning: pointer targets in passing argument 2 of  
‘query_font_func’ differ in signedness

xsmfns.c: In function ‘smc_save_yourself_CB’:
xsmfns.c:223: warning: pointer targets in passing argument 1 of  
‘strlen’ differ in signedness
xsmfns.c:254: warning: pointer targets in passing argument 1 of  
‘strlen’ differ in signedness
xsmfns.c: In function ‘create_client_leader_window’:
xsmfns.c:431: warning: pointer targets in passing argument 7 of  
‘XChangeProperty’ differ in signedness
xsmfns.c: In function ‘x_session_initialize’:
xsmfns.c:451: warning: pointer targets in assignment differ in  
signedness
xsmfns.c:455: warning: pointer targets in passing argument 1 of  
‘strlen’ differ in signedness
xsmfns.c:456: warning: pointer targets in passing argument 1 of  
‘strlen’ differ in signedness
xsmfns.c:464: warning: pointer targets in passing argument 2 of  
‘strcpy’ differ in signedness
xsmfns.c:465: warning: pointer targets in passing argument 2 of  
‘strcat’ differ in signedness

image.c: In function ‘x_create_bitmap_from_file’:
image.c:526: warning: pointer targets in passing argument 2 of  
‘strcpy’ differ in signedness
image.c: In function ‘parse_image_spec’:
image.c:953: warning: pointer targets in passing argument 2 of  
‘strcmp’ differ in signedness
image.c: In function ‘x_alloc_image_color’:
image.c:1590: warning: pointer targets in passing argument 2 of  
‘x_defined_color’ differ in signedness
image.c: In function ‘xbm_load’:
image.c:3445: warning: pointer targets in passing argument 1 of  
‘slurp_file’ differ in signedness
image.c:3524: warning: pointer targets in assignment differ in  
signedness
image.c:3526: warning: pointer targets in assignment differ in  
signedness
image.c: In function ‘xpm_load’:
image.c:4043: warning: pointer targets in passing argument 2 of  
‘strcpy’ differ in signedness
image.c:4045: warning: pointer targets in passing argument 2 of  
‘strcpy’ differ in signedness
image.c:4083: warning: pointer targets in passing argument 3 of  
‘XpmReadFileToPixmap’ differ in signedness
image.c:4099: warning: pointer targets in passing argument 3 of  
‘XpmCreatePixmapFromBuffer’ differ in signedness
image.c: In function ‘pbm_load’:
image.c:5718: warning: pointer targets in passing argument 1 of  
‘slurp_file’ differ in signedness
image.c: In function ‘png_load’:
image.c:6216: warning: pointer targets in passing argument 1 of  
‘fopen’ differ in signedness
image.c:6373: warning: pointer targets in passing argument 2 of  
‘x_defined_color’ differ in signedness
image.c: In function ‘jpeg_load’:
image.c:7018: warning: pointer targets in passing argument 1 of  
‘fopen’ differ in signedness
image.c: In function ‘tiff_load’:
image.c:7476: warning: pointer targets in passing argument 1 of  
‘TIFFOpen’ differ in signedness
image.c: In function ‘gif_load’:
image.c:7815: warning: pointer targets in passing argument 1 of  
‘DGifOpenFileName’ differ in signedness
image.c: In function ‘svg_load’:
image.c:8435: warning: pointer targets in passing argument 1 of  
‘slurp_file’ differ in signedness
image.c: In function ‘svg_load_image’:
image.c:8537: warning: pointer targets in passing argument 2 of  
‘x_defined_color’ differ in signedness
image.c: In function ‘xbm_load_image’:
image.c:3379: warning: pointer targets in passing argument 3 of  
‘Create_Pixmap_From_Bitmap_Data’ differ in signedness

dbusbind.c: In function ‘xd_append_arg’:
dbusbind.c:434: warning: pointer targets in initialization differ in  
signedness
dbusbind.c: In function ‘xd_read_message’:
dbusbind.c:1027: warning: pointer targets in passing argument 2 of  
‘strcmp’ differ in signedness
dbusbind.c:1030: warning: pointer targets in passing argument 2 of  
‘strcmp’ differ in signedness
dbusbind.c: In function ‘Fdbus_register_signal’:
dbusbind.c:1134: warning: pointer targets in passing argument 1 of  
‘strlen’ differ in signedness
dbusbind.c:1135: warning: pointer targets in passing argument 1 of  
‘strcmp’ differ in signedness
dbusbind.c:1136: warning: pointer targets in passing argument 1 of  
‘strncmp’ differ in signedness
dbusbind.c:1149: warning: pointer targets in passing argument 1 of  
‘strlen’ differ in signedness
dbusbind.c: In function ‘Fdbus_register_method’:
dbusbind.c:1232: warning: pointer targets in passing argument 2 of  
‘dbus_bus_request_name’ differ in signedness

emacs.c: In function ‘bug_reporting_address’:
emacs.c:776: warning: pointer targets in assignment differ in signedness
emacs.c: In function ‘Fkill_emacs’:
emacs.c:2074: warning: pointer targets in passing argument 1 of  
‘unlink’ differ in signedness

keyboard.c: In function ‘echo_char’:
keyboard.c:726: warning: pointer targets in passing argument 2 of  
‘copy_text’ differ in signedness
keyboard.c: In function ‘parse_modifiers_uncached’:
keyboard.c:6365: warning: pointer targets in passing argument 1 of  
‘strncmp’ differ in signedness
keyboard.c:6366: warning: pointer targets in passing argument 1 of  
‘strncmp’ differ in signedness
keyboard.c:6367: warning: pointer targets in passing argument 1 of  
‘strncmp’ differ in signedness
keyboard.c:6371: warning: pointer targets in passing argument 1 of  
‘strncmp’ differ in signedness
keyboard.c:6396: warning: pointer targets in passing argument 1 of  
‘strncmp’ differ in signedness
keyboard.c: In function ‘parse_modifiers’:
keyboard.c:6521: warning: pointer targets in passing argument 1 of  
‘make_string’ differ in signedness
keyboard.c: In function ‘parse_solitary_modifier’:
keyboard.c:6871: warning: pointer targets in passing argument 1 of  
‘strncmp’ differ in signedness
keyboard.c:6879: warning: pointer targets in passing argument 1 of  
‘strncmp’ differ in signedness
keyboard.c:6880: warning: pointer targets in passing argument 1 of  
‘strncmp’ differ in signedness
keyboard.c:6888: warning: pointer targets in passing argument 1 of  
‘strncmp’ differ in signedness
keyboard.c:6896: warning: pointer targets in passing argument 1 of  
‘strncmp’ differ in signedness
keyboard.c:6904: warning: pointer targets in passing argument 1 of  
‘strncmp’ differ in signedness
keyboard.c:6905: warning: pointer targets in passing argument 1 of  
‘strncmp’ differ in signedness
keyboard.c:6910: warning: pointer targets in passing argument 1 of  
‘strncmp’ differ in signedness
keyboard.c:6911: warning: pointer targets in passing argument 1 of  
‘strncmp’ differ in signedness
keyboard.c:6912: warning: pointer targets in passing argument 1 of  
‘strncmp’ differ in signedness
keyboard.c:6916: warning: pointer targets in passing argument 1 of  
‘strncmp’ differ in signedness
keyboard.c: In function ‘tty_read_avail_input’:
keyboard.c:7250: warning: pointer targets in passing argument 2 of  
‘emacs_read’ differ in signedness
keyboard.c: In function ‘read_char_minibuf_menu_prompt’:
keyboard.c:8699: warning: pointer targets in passing argument 2 of  
‘strcpy’ differ in signedness
keyboard.c: In function ‘Fopen_dribble_file’:
keyboard.c:10827: warning: pointer targets in passing argument 1 of  
‘fopen’ differ in signedness

keymap.c: In function ‘Fsingle_key_description’:
keymap.c:2501: warning: pointer targets in passing argument 1 of  
‘multibyte_chars_in_text’ differ in signedness
keymap.c: In function ‘Ftext_char_description’:
keymap.c:2580: warning: pointer targets in passing argument 1 of  
‘make_multibyte_string’ differ in signedness
keymap.c:2585: warning: pointer targets in passing argument 1 of  
‘build_string’ differ in signedness
keymap.c: In function ‘Fdescribe_buffer_bindings’:
keymap.c:3017: warning: pointer targets in passing argument 1 of  
‘insert’ differ in signedness
keymap.c:3020: warning: pointer targets in passing argument 1 of  
‘insert’ differ in signedness
keymap.c:3022: warning: pointer targets in passing argument 1 of  
‘insert’ differ in signedness
keymap.c:3028: warning: pointer targets in passing argument 1 of  
‘insert’ differ in signedness
keymap.c: In function ‘describe_map’:
keymap.c:3507: warning: pointer targets in passing argument 1 of  
‘insert’ differ in signedness
keymap.c:3535: warning: pointer targets in passing argument 1 of  
‘insert’ differ in signedness
keymap.c: In function ‘describe_vector’:
keymap.c:3801: warning: pointer targets in passing argument 1 of  
‘insert’ differ in signedness
keymap.c:3808: warning: pointer targets in passing argument 1 of  
‘insert’ differ in signedness
keymap.c:3826: warning: pointer targets in passing argument 1 of  
‘insert’ differ in signedness
keymap.c:3842: warning: pointer targets in passing argument 1 of  
‘insert’ differ in signedness
keymap.c:3843: warning: pointer targets in passing argument 1 of  
‘insert’ differ in signedness
keymap.c:3856: warning: pointer targets in passing argument 1 of  
‘insert’ differ in signedness
keymap.c:3896: warning: pointer targets in passing argument 1 of  
‘insert’ differ in signedness
keymap.c:3921: warning: pointer targets in passing argument 1 of  
‘insert’ differ in signedness
keymap.c:3946: warning: pointer targets in passing argument 1 of  
‘insert’ differ in signedness
keymap.c: In function ‘Ftext_char_description’:
keymap.c:2583: warning: pointer targets in passing argument 2 of  
‘push_text_char_description’ differ in signedness

buffer.c: In function ‘Fset_buffer_major_mode’:
buffer.c:1660: warning: pointer targets in passing argument 1 of  
‘strcmp’ differ in signedness
buffer.c: In function ‘init_buffer’:
buffer.c:5228: warning: pointer targets in passing argument 2 of  
‘strcmp’ differ in signedness

filelock.c: In function ‘fill_in_lock_file_name’:
filelock.c:338: warning: pointer targets in passing argument 2 of  
‘strcpy’ differ in signedness
filelock.c: In function ‘current_lock_owner’:
filelock.c:506: warning: pointer targets in passing argument 2 of  
‘strcmp’ differ in signedness

insdel.c: In function ‘insert_string’:
insdel.c:796: warning: pointer targets in passing argument 1 of  
‘insert’ differ in signedness

minibuf.c: In function ‘Fread_buffer’:
minibuf.c:1222: warning: pointer targets in passing argument 1 of  
‘strlen’ differ in signedness
minibuf.c:1229: warning: pointer targets in passing argument 1 of  
‘make_specified_string’ differ in signedness
minibuf.c: In function ‘Ftest_completion’:
minibuf.c:1880: warning: pointer targets in passing argument 2 of  
‘oblookup’ differ in signedness
minibuf.c:1891: warning: pointer targets in passing argument 2 of  
‘oblookup’ differ in signedness

fileio.c: In function ‘Ffile_name_directory’:
fileio.c:486: warning: pointer targets in passing argument 1 of  
‘make_specified_string’ differ in signedness
fileio.c: In function ‘Ffile_name_nondirectory’:
fileio.c:525: warning: pointer targets in passing argument 1 of  
‘make_specified_string’ differ in signedness
fileio.c: In function ‘make_temp_name’:
fileio.c:983: warning: pointer targets in passing argument 1 of  
‘stat’ differ in signedness
fileio.c: In function ‘Fexpand_file_name’:
fileio.c:1341: warning: pointer targets in passing argument 1 of  
‘strlen’ differ in signedness
fileio.c:1341: warning: pointer targets in passing argument 1 of  
‘make_specified_string’ differ in signedness
fileio.c:1394: warning: pointer targets in passing argument 1 of  
‘getpwnam’ differ in signedness
fileio.c:1540: warning: pointer targets in passing argument 1 of  
‘strlen’ differ in signedness
fileio.c:1558: warning: pointer targets in passing argument 1 of  
‘strlen’ differ in signedness
fileio.c:1584: warning: pointer targets in passing argument 1 of  
‘strcpy’ differ in signedness
fileio.c:1584: warning: pointer targets in passing argument 2 of  
‘strcpy’ differ in signedness
fileio.c:1591: warning: pointer targets in passing argument 1 of  
‘strcat’ differ in signedness
fileio.c:1591: warning: pointer targets in passing argument 2 of  
‘strcat’ differ in signedness
fileio.c:1715: warning: pointer targets in passing argument 1 of  
‘make_specified_string’ differ in signedness
fileio.c: In function ‘search_embedded_absfilename’:
fileio.c:2123: warning: pointer targets in passing argument 1 of  
‘getpwnam’ differ in signedness
fileio.c: In function ‘Fsubstitute_in_file_name’:
fileio.c:2182: warning: pointer targets in passing argument 1 of  
‘make_specified_string’ differ in signedness
fileio.c:2223: warning: pointer targets in passing argument 1 of  
‘strncpy’ differ in signedness
fileio.c:2223: warning: pointer targets in passing argument 2 of  
‘strncpy’ differ in signedness
fileio.c:2230: warning: pointer targets in passing argument 1 of  
‘egetenv’ differ in signedness
fileio.c:2233: warning: pointer targets in passing argument 1 of  
‘strlen’ differ in signedness
fileio.c:2278: warning: pointer targets in passing argument 1 of  
‘strncpy’ differ in signedness
fileio.c:2278: warning: pointer targets in passing argument 2 of  
‘strncpy’ differ in signedness
fileio.c:2285: warning: pointer targets in passing argument 1 of  
‘egetenv’ differ in signedness
fileio.c:2289: warning: pointer targets in passing argument 1 of  
‘strcpy’ differ in signedness
fileio.c:2289: warning: pointer targets in passing argument 2 of  
‘strcpy’ differ in signedness
fileio.c:2289: warning: pointer targets in passing argument 1 of  
‘strlen’ differ in signedness
fileio.c:2303: warning: pointer targets in passing argument 1 of  
‘strcpy’ differ in signedness
fileio.c:2303: warning: pointer targets in passing argument 2 of  
‘strcpy’ differ in signedness
fileio.c:2304: warning: pointer targets in passing argument 1 of  
‘strlen’ differ in signedness
fileio.c:2317: warning: pointer targets in passing argument 1 of  
‘make_specified_string’ differ in signedness
fileio.c: In function ‘barf_or_query_if_file_exists’:
fileio.c:2387: warning: pointer targets in passing argument 1 of  
‘lstat’ differ in signedness
fileio.c:2394: warning: pointer targets in passing argument 1 of  
‘build_string’ differ in signedness
fileio.c: In function ‘Fcopy_file’:
fileio.c:2479: warning: pointer targets in passing argument 1 of  
‘stat’ differ in signedness
fileio.c:2512: warning: pointer targets in passing argument 1 of  
‘emacs_open’ differ in signedness
fileio.c:2562: warning: pointer targets in passing argument 1 of  
‘emacs_open’ differ in signedness
fileio.c:2600: warning: pointer targets in passing argument 1 of  
‘set_file_times’ differ in signedness
fileio.c: In function ‘Fmake_directory_internal’:
fileio.c:2652: warning: pointer targets in passing argument 1 of  
‘mkdir’ differ in signedness
fileio.c: In function ‘Fdelete_directory’:
fileio.c:2679: warning: pointer targets in passing argument 1 of  
‘rmdir’ differ in signedness
fileio.c: In function ‘Fdelete_file’:
fileio.c:2710: warning: pointer targets in passing argument 1 of  
‘unlink’ differ in signedness
fileio.c: In function ‘Frename_file’:
fileio.c:2789: warning: pointer targets in passing argument 1 of  
‘rename’ differ in signedness
fileio.c:2789: warning: pointer targets in passing argument 2 of  
‘rename’ differ in signedness
fileio.c: In function ‘Fadd_name_to_file’:
fileio.c:2866: warning: pointer targets in passing argument 1 of  
‘unlink’ differ in signedness
fileio.c:2867: warning: pointer targets in passing argument 1 of  
‘link’ differ in signedness
fileio.c:2867: warning: pointer targets in passing argument 2 of  
‘link’ differ in signedness
fileio.c: In function ‘Fmake_symbolic_link’:
fileio.c:2927: warning: pointer targets in passing argument 1 of  
‘symlink’ differ in signedness
fileio.c:2927: warning: pointer targets in passing argument 2 of  
‘symlink’ differ in signedness
fileio.c:2932: warning: pointer targets in passing argument 1 of  
‘unlink’ differ in signedness
fileio.c:2934: warning: pointer targets in passing argument 1 of  
‘symlink’ differ in signedness
fileio.c:2934: warning: pointer targets in passing argument 2 of  
‘symlink’ differ in signedness
fileio.c: In function ‘Ffile_exists_p’:
fileio.c:3089: warning: pointer targets in passing argument 1 of  
‘stat’ differ in signedness
fileio.c: In function ‘Ffile_readable_p’:
fileio.c:3150: warning: pointer targets in passing argument 1 of  
‘stat’ differ in signedness
fileio.c:3156: warning: pointer targets in passing argument 1 of  
‘emacs_open’ differ in signedness
fileio.c: In function ‘Ffile_writable_p’:
fileio.c:3185: warning: pointer targets in passing argument 1 of  
‘stat’ differ in signedness
fileio.c: In function ‘Faccess_file’:
fileio.c:3236: warning: pointer targets in passing argument 1 of  
‘emacs_open’ differ in signedness
fileio.c:3238: warning: pointer targets in passing argument 1 of  
‘report_file_error’ differ in signedness
fileio.c: In function ‘Ffile_symlink_p’:
fileio.c:3283: warning: pointer targets in passing argument 1 of  
‘readlink’ differ in signedness
fileio.c: In function ‘Ffile_directory_p’:
fileio.c:3333: warning: pointer targets in passing argument 1 of  
‘stat’ differ in signedness
fileio.c: In function ‘Ffile_regular_p’:
fileio.c:3403: warning: pointer targets in passing argument 1 of  
‘stat’ differ in signedness
fileio.c: In function ‘Ffile_modes’:
fileio.c:3429: warning: pointer targets in passing argument 1 of  
‘stat’ differ in signedness
fileio.c: In function ‘Fset_file_modes’:
fileio.c:3461: warning: pointer targets in passing argument 1 of  
‘chmod’ differ in signedness
fileio.c: In function ‘Fset_file_times’:
fileio.c:3531: warning: pointer targets in passing argument 1 of  
‘set_file_times’ differ in signedness
fileio.c: In function ‘Ffile_newer_than_file_p’:
fileio.c:3595: warning: pointer targets in passing argument 1 of  
‘stat’ differ in signedness
fileio.c:3600: warning: pointer targets in passing argument 1 of  
‘stat’ differ in signedness
fileio.c: In function ‘read_non_regular’:
fileio.c:3678: warning: pointer targets in passing argument 2 of  
‘emacs_read’ differ in signedness
fileio.c: In function ‘Finsert_file_contents’:
fileio.c:3786: warning: pointer targets in passing argument 1 of  
‘stat’ differ in signedness
fileio.c:3822: warning: pointer targets in passing argument 1 of  
‘emacs_open’ differ in signedness
fileio.c:3915: warning: pointer targets in passing argument 2 of  
‘emacs_read’ differ in signedness
fileio.c:3918: warning: pointer targets in passing argument 2 of  
‘emacs_read’ differ in signedness
fileio.c:3924: warning: pointer targets in passing argument 2 of  
‘emacs_read’ differ in signedness
fileio.c:4045: warning: pointer targets in passing argument 2 of  
‘emacs_read’ differ in signedness
fileio.c:4116: warning: pointer targets in passing argument 2 of  
‘emacs_read’ differ in signedness
fileio.c:4243: warning: pointer targets in passing argument 2 of  
‘emacs_read’ differ in signedness
fileio.c:4488: warning: pointer targets in passing argument 2 of  
‘emacs_read’ differ in signedness
fileio.c: In function ‘Fwrite_region’:
fileio.c:5179: warning: pointer targets in passing argument 1 of  
‘emacs_open’ differ in signedness
fileio.c:5237: warning: pointer targets in passing argument 1 of  
‘emacs_open’ differ in signedness
fileio.c:5405: warning: pointer targets in passing argument 1 of  
‘stat’ differ in signedness
fileio.c: In function ‘e_write’:
fileio.c:5656: warning: pointer targets in assignment differ in  
signedness
fileio.c:5663: warning: pointer targets in assignment differ in  
signedness
fileio.c:5681: warning: pointer targets in passing argument 2 of  
‘encode_coding’ differ in signedness
fileio.c:5681: warning: pointer targets in passing argument 3 of  
‘encode_coding’ differ in signedness
fileio.c: In function ‘Fverify_visited_file_modtime’:
fileio.c:5746: warning: pointer targets in passing argument 1 of  
‘stat’ differ in signedness
fileio.c: In function ‘Fset_visited_file_modtime’:
fileio.c:5818: warning: pointer targets in passing argument 1 of  
‘stat’ differ in signedness
fileio.c: In function ‘auto_save_1’:
fileio.c:5871: warning: pointer targets in passing argument 1 of  
‘stat’ differ in signedness
fileio.c: In function ‘Fdo_auto_save’:
fileio.c:5997: warning: pointer targets in passing argument 1 of  
‘fopen’ differ in signedness
fileio.c: In function ‘Fread_file_name’:
fileio.c:6412: warning: pointer targets in passing argument 1 of  
‘strncmp’ differ in signedness
fileio.c:6412: warning: pointer targets in passing argument 2 of  
‘strncmp’ differ in signedness
fileio.c:6422: warning: pointer targets in passing argument 1 of  
‘strncmp’ differ in signedness
fileio.c:6422: warning: pointer targets in passing argument 2 of  
‘strncmp’ differ in signedness
fileio.c: In function ‘Fdirectory_file_name’:
fileio.c:867: warning: pointer targets in passing argument 1 of  
‘directory_file_name’ differ in signedness
fileio.c: In function ‘Ffile_name_as_directory’:
fileio.c:666: warning: pointer targets in passing argument 2 of  
‘file_name_as_directory’ differ in signedness
fileio.c: In function ‘Fexpand_file_name’:
fileio.c:1588: warning: pointer targets in passing argument 1 of  
‘file_name_as_directory’ differ in signedness
fileio.c:1588: warning: pointer targets in passing argument 2 of  
‘file_name_as_directory’ differ in signedness
fileio.c: In function ‘Ffile_writable_p’:
fileio.c:3186: warning: pointer targets in passing argument 1 of  
‘check_writable’ differ in signedness
fileio.c: In function ‘Ffile_executable_p’:
fileio.c:3112: warning: pointer targets in passing argument 1 of  
‘check_executable’ differ in signedness

dired.c: In function ‘directory_files_internal’:
dired.c:202: warning: pointer targets in passing argument 1 of  
‘opendir’ differ in signedness
dired.c:264: warning: pointer targets in passing argument 2 of  
‘re_search’ differ in signedness
dired.c: In function ‘file_name_completion’:
dired.c:525: warning: pointer targets in passing argument 1 of  
‘opendir’ differ in signedness
dired.c:564: warning: pointer targets in passing argument 1 of ‘scmp’  
differ in signedness
dired.c:605: warning: pointer targets in passing argument 1 of ‘scmp’  
differ in signedness
dired.c:629: warning: pointer targets in passing argument 1 of ‘scmp’  
differ in signedness
dired.c: In function ‘Ffile_attributes’:
dired.c:960: warning: pointer targets in passing argument 1 of  
‘lstat’ differ in signedness
dired.c:1015: warning: pointer targets in passing argument 1 of  
‘stat’ differ in signedness

cmds.c: In function ‘internal_self_insert’:
cmds.c:503: warning: pointer targets in passing argument 1 of  
‘make_string_from_bytes’ differ in signedness

casefiddle.c: In function ‘casify_region’:
casefiddle.c:259: warning: pointer targets in passing argument 5 of  
‘replace_range_2’ differ in signedness

indent.c: In function ‘Fvertical_motion’:
indent.c:2104: warning: pointer targets in initialization differ in  
signedness

search.c: In function ‘compile_pattern_1’:
search.c:188: warning: pointer targets in passing argument 1 of  
‘re_set_whitespace_regexp’ differ in signedness
search.c: In function ‘Freplace_match’:
search.c:2714: warning: pointer targets in assignment differ in  
signedness
search.c:2763: warning: pointer targets in passing argument 1 of  
‘make_multibyte_string’ differ in signedness
search.c:2766: warning: pointer targets in passing argument 1 of  
‘make_unibyte_string’ differ in signedness
search.c: In function ‘Fregexp_quote’:
search.c:3188: warning: pointer targets in passing argument 1 of  
‘make_specified_string’ differ in signedness

regex.c: In function ‘re_wctype’:
regex.c:2024: warning: pointer targets in initialization differ in  
signedness
regex.c: In function ‘regex_compile’:
regex.c:2609: warning: pointer targets in passing argument 1 of  
‘strlen’ differ in signedness

alloc.c: In function ‘make_string’:
alloc.c:2377: warning: pointer targets in passing argument 1 of  
‘parse_str_as_multibyte’ differ in signedness
alloc.c: In function ‘make_specified_string’:
alloc.c:2451: warning: pointer targets in passing argument 1 of  
‘multibyte_chars_in_text’ differ in signedness
alloc.c: In function ‘make_pure_string’:
alloc.c:4848: warning: pointer targets in assignment differ in  
signedness
alloc.c: In function ‘Fpurecopy’:
alloc.c:4935: warning: pointer targets in passing argument 1 of  
‘make_pure_string’ differ in signedness

data.c: In function ‘Fnumber_to_string’:
data.c:2430: warning: pointer targets in passing argument 1 of  
‘float_to_string’ differ in signedness
data.c: In function ‘Fstring_to_number’:
data.c:2506: warning: pointer targets in passing argument 1 of  
‘isfloat_string’ differ in signedness
data.c:2507: warning: pointer targets in passing argument 1 of ‘atof’  
differ in signedness

doc.c: In function ‘get_doc_string’:
doc.c:171: warning: pointer targets in passing argument 2 of ‘strcpy’  
differ in signedness
doc.c:172: warning: pointer targets in passing argument 2 of ‘strcat’  
differ in signedness
doc.c:189: warning: pointer targets in passing argument 2 of ‘strcat’  
differ in signedness
doc.c:313: warning: pointer targets in assignment differ in signedness
doc.c:325: warning: pointer targets in passing argument 1 of  
‘multibyte_chars_in_text’ differ in signedness
doc.c: In function ‘Fsnarf_documentation’:
doc.c:619: warning: pointer targets in passing argument 2 of ‘strcpy’  
differ in signedness
doc.c:621: warning: pointer targets in passing argument 2 of ‘strcat’  
differ in signedness
doc.c:711: warning: pointer targets in passing argument 1 of  
‘multibyte_chars_in_text’ differ in signedness
doc.c: In function ‘Fsubstitute_command_keys’:
doc.c:851: warning: pointer targets in passing argument 1 of  
‘make_string’ differ in signedness
doc.c:921: warning: pointer targets in passing argument 1 of  
‘make_string’ differ in signedness
doc.c:998: warning: pointer targets in passing argument 1 of  
‘make_string_from_bytes’ differ in signedness

editfns.c: In function ‘init_editfns’:
editfns.c:189: warning: pointer targets in passing argument 1 of  
‘build_string’ differ in signedness
editfns.c: In function ‘Fchar_to_string’:
editfns.c:218: warning: pointer targets in passing argument 1 of  
‘make_string_from_bytes’ differ in signedness
editfns.c: In function ‘Fuser_full_name’:
editfns.c:1368: warning: pointer targets in passing argument 1 of  
‘getpwnam’ differ in signedness
editfns.c:1379: warning: pointer targets in passing argument 1 of  
‘index’ differ in signedness
editfns.c:1380: warning: pointer targets in passing argument 1 of  
‘strlen’ differ in signedness
editfns.c:1380: warning: pointer targets in passing argument 1 of  
‘make_string’ differ in signedness
editfns.c:1384: warning: pointer targets in passing argument 1 of  
‘index’ differ in signedness
editfns.c:1392: warning: pointer targets in passing argument 1 of  
‘strlen’ differ in signedness
editfns.c:1395: warning: pointer targets in passing argument 1 of  
‘strcat’ differ in signedness
editfns.c:1395: warning: pointer targets in passing argument 2 of  
‘strcat’ differ in signedness
editfns.c:1397: warning: pointer targets in passing argument 1 of  
‘strcat’ differ in signedness
editfns.c:1397: warning: pointer targets in passing argument 2 of  
‘strcat’ differ in signedness
editfns.c:1398: warning: pointer targets in passing argument 1 of  
‘build_string’ differ in signedness
editfns.c: In function ‘Fformat_time_string’:
editfns.c:1715: warning: pointer targets in passing argument 3 of  
‘emacs_memftimeu’ differ in signedness
editfns.c:1726: warning: pointer targets in passing argument 3 of  
‘emacs_memftimeu’ differ in signedness
editfns.c: In function ‘Fsubst_char_in_region’:
editfns.c:2853: warning: pointer targets in passing argument 1 of  
‘make_multibyte_string’ differ in signedness
editfns.c: In function ‘Ftranslate_region_internal’:
editfns.c:3000: warning: pointer targets in passing argument 1 of  
‘make_multibyte_string’ differ in signedness
editfns.c: In function ‘Fformat’:
editfns.c:3715: warning: pointer targets in passing argument 1 of  
‘atoi’ differ in signedness
editfns.c:3782: warning: pointer targets in passing argument 2 of  
‘copy_text’ differ in signedness
editfns.c:3807: warning: pointer targets in passing argument 2 of  
‘sprintf’ differ in signedness
editfns.c:3823: warning: pointer targets in passing argument 2 of  
‘sprintf’ differ in signedness
editfns.c:3825: warning: pointer targets in passing argument 2 of  
‘sprintf’ differ in signedness
editfns.c:3828: warning: pointer targets in passing argument 2 of  
‘sprintf’ differ in signedness
editfns.c:3831: warning: pointer targets in passing argument 2 of  
‘sprintf’ differ in signedness
editfns.c:3835: warning: pointer targets in passing argument 2 of  
‘sprintf’ differ in signedness
editfns.c:3838: warning: pointer targets in passing argument 2 of  
‘sprintf’ differ in signedness
editfns.c:3848: warning: pointer targets in passing argument 1 of  
‘str_to_multibyte’ differ in signedness
editfns.c:3875: warning: pointer targets in passing argument 2 of  
‘copy_text’ differ in signedness
editfns.c:3889: warning: pointer targets in passing argument 1 of  
‘multibyte_chars_in_text’ differ in signedness
editfns.c: In function ‘Ftranspose_regions’:
editfns.c:4353: warning: pointer targets in passing argument 1 of  
‘safe_bcopy’ differ in signedness
editfns.c:4353: warning: pointer targets in passing argument 2 of  
‘safe_bcopy’ differ in signedness

callint.c: In function ‘Fcall_interactively’:
callint.c:463: warning: pointer targets in passing argument 1 of  
‘index’ differ in signedness
callint.c:492: warning: pointer targets in passing argument 2 of  
‘strncpy’ differ in signedness
callint.c:791: warning: pointer targets in passing argument 1 of  
‘index’ differ in signedness

fns.c: In function ‘string_make_multibyte’:
fns.c:1022: warning: pointer targets in passing argument 1 of  
‘make_multibyte_string’ differ in signedness
fns.c: In function ‘string_to_multibyte’:
fns.c:1050: warning: pointer targets in passing argument 1 of  
‘make_multibyte_string’ differ in signedness
fns.c:1056: warning: pointer targets in passing argument 1 of  
‘make_multibyte_string’ differ in signedness
fns.c: In function ‘string_make_unibyte’:
fns.c:1083: warning: pointer targets in passing argument 1 of  
‘make_unibyte_string’ differ in signedness
fns.c: In function ‘Fstring_as_unibyte’:
fns.c:1143: warning: pointer targets in passing argument 1 of  
‘make_unibyte_string’ differ in signedness
fns.c: In function ‘Fsubstring’:
fns.c:1297: warning: pointer targets in passing argument 1 of  
‘make_specified_string’ differ in signedness
fns.c: In function ‘Fsubstring_no_properties’:
fns.c:1363: warning: pointer targets in passing argument 1 of  
‘make_specified_string’ differ in signedness
fns.c: In function ‘substring_both’:
fns.c:1395: warning: pointer targets in passing argument 1 of  
‘make_specified_string’ differ in signedness
fns.c: In function ‘Fyes_or_no_p’:
fns.c:3402: warning: pointer targets in passing argument 1 of  
‘strcmp’ differ in signedness
fns.c:3407: warning: pointer targets in passing argument 1 of  
‘strcmp’ differ in signedness
fns.c: In function ‘Fbase64_encode_region’:
fns.c:3897: warning: pointer targets in passing argument 1 of  
‘base64_encode_1’ differ in signedness
fns.c:3911: warning: pointer targets in passing argument 1 of  
‘insert’ differ in signedness
fns.c: In function ‘Fbase64_encode_string’:
fns.c:3954: warning: pointer targets in passing argument 1 of  
‘base64_encode_1’ differ in signedness
fns.c: In function ‘base64_encode_1’:
fns.c:3989: warning: pointer targets in passing argument 1 of  
‘string_to_char’ differ in signedness
fns.c:4027: warning: pointer targets in passing argument 1 of  
‘string_to_char’ differ in signedness
fns.c:4049: warning: pointer targets in passing argument 1 of  
‘string_to_char’ differ in signedness
fns.c: In function ‘Fbase64_decode_region’:
fns.c:4096: warning: pointer targets in passing argument 1 of  
‘base64_decode_1’ differ in signedness
fns.c:4110: warning: pointer targets in passing argument 1 of  
‘insert_1_both’ differ in signedness
fns.c: In function ‘Fbase64_decode_string’:
fns.c:4147: warning: pointer targets in passing argument 1 of  
‘base64_decode_1’ differ in signedness
fns.c: In function ‘Fmd5’:
fns.c:5725: warning: pointer targets in passing argument 1 of  
‘md5_buffer’ differ in signedness
fns.c:5728: warning: pointer targets in passing argument 1 of  
‘sprintf’ differ in signedness
fns.c:5731: warning: pointer targets in passing argument 1 of  
‘make_string’ differ in signedness

print.c: In function ‘printchar’:
print.c:357: warning: pointer targets in passing argument 1 of  
‘message_dolog’ differ in signedness
print.c: In function ‘strout’:
print.c:428: warning: pointer targets in passing argument 1 of  
‘string_to_char’ differ in signedness
print.c:459: warning: pointer targets in passing argument 1 of  
‘string_to_char’ differ in signedness
print.c: In function ‘Fwrite_char’:
print.c:574: warning: pointer targets in passing argument 1 of  
‘copy_text’ differ in signedness
print.c:574: warning: pointer targets in passing argument 1 of  
‘insert_1_both’ differ in signedness
print.c: In function ‘write_string’:
print.c:594: warning: pointer targets in passing argument 1 of  
‘copy_text’ differ in signedness
print.c:594: warning: pointer targets in passing argument 1 of  
‘insert_1_both’ differ in signedness
print.c: In function ‘write_string_1’:
print.c:611: warning: pointer targets in passing argument 1 of  
‘copy_text’ differ in signedness
print.c:611: warning: pointer targets in passing argument 1 of  
‘insert_1_both’ differ in signedness
print.c: In function ‘Fwith_output_to_temp_buffer’:
print.c:715: warning: pointer targets in passing argument 1 of  
‘temp_output_buffer_setup’ differ in signedness
print.c: In function ‘Fterpri’:
print.c:746: warning: pointer targets in passing argument 1 of  
‘copy_text’ differ in signedness
print.c:746: warning: pointer targets in passing argument 1 of  
‘insert_1_both’ differ in signedness
print.c: In function ‘Fprin1’:
print.c:785: warning: pointer targets in passing argument 1 of  
‘copy_text’ differ in signedness
print.c:785: warning: pointer targets in passing argument 1 of  
‘insert_1_both’ differ in signedness
print.c: In function ‘Fprin1_to_string’:
print.c:828: warning: pointer targets in passing argument 1 of  
‘copy_text’ differ in signedness
print.c:828: warning: pointer targets in passing argument 1 of  
‘insert_1_both’ differ in signedness
print.c: In function ‘Fprinc’:
print.c:881: warning: pointer targets in passing argument 1 of  
‘copy_text’ differ in signedness
print.c:881: warning: pointer targets in passing argument 1 of  
‘insert_1_both’ differ in signedness
print.c: In function ‘Fprint’:
print.c:925: warning: pointer targets in passing argument 1 of  
‘copy_text’ differ in signedness
print.c:925: warning: pointer targets in passing argument 1 of  
‘insert_1_both’ differ in signedness
print.c: In function ‘float_to_string’:
print.c:1181: warning: pointer targets in passing argument 1 of  
‘strcpy’ differ in signedness
print.c:1187: warning: pointer targets in passing argument 1 of  
‘strcpy’ differ in signedness
print.c:1206: warning: pointer targets in passing argument 1 of  
‘strcpy’ differ in signedness
print.c:1227: warning: pointer targets in passing argument 1 of  
‘sprintf’ differ in signedness
print.c:1228: warning: pointer targets in passing argument 1 of  
‘atof’ differ in signedness
print.c:1265: warning: pointer targets in passing argument 1 of  
‘sprintf’ differ in signedness
print.c:1265: warning: pointer targets in passing argument 2 of  
‘sprintf’ differ in signedness
print.c: In function ‘print_object’:
print.c:1564: warning: pointer targets in passing argument 1 of  
‘float_to_string’ differ in signedness
print.c:1636: warning: pointer targets in passing argument 1 of  
‘sprintf’ differ in signedness
print.c:1649: warning: pointer targets in passing argument 1 of  
‘sprintf’ differ in signedness

lread.c: In function ‘Fload’:
lread.c:836: warning: pointer targets in passing argument 1 of  
‘strcmp’ differ in signedness
lread.c:839: warning: pointer targets in passing argument 1 of  
‘strcmp’ differ in signedness
lread.c: In function ‘openp’:
lread.c:1236: warning: pointer targets in passing argument 2 of  
‘strncpy’ differ in signedness
lread.c:1242: warning: pointer targets in passing argument 2 of  
‘strncpy’ differ in signedness
lread.c:1247: warning: pointer targets in passing argument 2 of  
‘strncat’ differ in signedness
lread.c:1282: warning: pointer targets in assignment differ in  
signedness
lread.c: In function ‘to_multibyte’:
lread.c:2142: warning: pointer targets in passing argument 1 of  
‘parse_str_as_multibyte’ differ in signedness
lread.c:2154: warning: pointer targets in passing argument 1 of  
‘str_as_multibyte’ differ in signedness
lread.c: In function ‘Fintern’:
lread.c:3389: warning: pointer targets in passing argument 2 of  
‘oblookup’ differ in signedness
lread.c: In function ‘Fintern_soft’:
lread.c:3440: warning: pointer targets in passing argument 2 of  
‘oblookup’ differ in signedness
lread.c: In function ‘Funintern’:
lread.c:3472: warning: pointer targets in passing argument 2 of  
‘oblookup’ differ in signedness
lread.c: In function ‘init_lread’:
lread.c:3937: warning: pointer targets in passing argument 1 of  
‘access’ differ in signedness
lread.c: In function ‘oblookup’:
lread.c:3538: warning: pointer targets in passing argument 1 of  
‘hash_string’ differ in signedness
lread.c: In function ‘init_obarray’:
lread.c:3642: warning: pointer targets in passing argument 1 of  
‘hash_string’ differ in signedness

syntax.c: In function ‘Finternal_describe_syntax_value’:
syntax.c:1108: warning: pointer targets in passing argument 1 of  
‘insert’ differ in signedness
syntax.c:1111: warning: pointer targets in passing argument 1 of  
‘insert’ differ in signedness
syntax.c:1116: warning: pointer targets in passing argument 1 of  
‘insert’ differ in signedness
syntax.c:1118: warning: pointer targets in passing argument 1 of  
‘insert’ differ in signedness
syntax.c:1121: warning: pointer targets in passing argument 1 of  
‘insert’ differ in signedness
syntax.c:1123: warning: pointer targets in passing argument 1 of  
‘insert’ differ in signedness
syntax.c:1126: warning: pointer targets in passing argument 1 of  
‘insert’ differ in signedness
syntax.c:1128: warning: pointer targets in passing argument 1 of  
‘insert’ differ in signedness
syntax.c:1130: warning: pointer targets in passing argument 1 of  
‘insert’ differ in signedness

bytecode.c: In function ‘Fbyte_code’:
bytecode.c:877: warning: pointer targets in passing argument 1 of  
‘temp_output_buffer_setup’ differ in signedness

process.c: In function ‘Fmake_network_process’:
process.c:3042: warning: pointer targets in passing argument 2 of  
‘strncpy’ differ in signedness
process.c:3087: warning: pointer targets in assignment differ in  
signedness
process.c:3102: warning: pointer targets in passing argument 1 of  
‘getaddrinfo’ differ in signedness
process.c:3127: warning: pointer targets in passing argument 1 of  
‘getservbyname’ differ in signedness
process.c:3278: warning: pointer targets in passing argument 3 of  
‘getsockname’ differ in signedness
process.c:3376: warning: pointer targets in passing argument 3 of  
‘getsockname’ differ in signedness
process.c: In function ‘Fnetwork_interface_info’:
process.c:3742: warning: pointer targets in passing argument 2 of  
‘strncpy’ differ in signedness
process.c: In function ‘server_accept_connection’:
process.c:4026: warning: pointer targets in passing argument 3 of  
‘accept’ differ in signedness
process.c:4154: warning: pointer targets in passing argument 3 of  
‘getsockname’ differ in signedness
process.c: In function ‘wait_reading_process_output’:
process.c:4924: warning: pointer targets in passing argument 3 of  
‘getpeername’ differ in signedness
process.c: In function ‘read_process_output’:
process.c:5069: warning: pointer targets in passing argument 6 of  
‘recvfrom’ differ in signedness
process.c: In function ‘send_process’:
process.c:5521: warning: pointer targets in passing argument 2 of  
‘encode_coding’ differ in signedness
process.c: In function ‘emacs_get_tty_pgrp’:
process.c:5855: warning: pointer targets in passing argument 1 of  
‘emacs_open’ differ in signedness
process.c: In function ‘Fsignal_process’:
process.c:6298: warning: pointer targets in passing argument 1 of  
‘strncmp’ differ in signedness
process.c:6298: warning: pointer targets in passing argument 1 of  
‘strncmp’ differ in signedness
process.c:6304: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
process.c:6307: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
process.c:6310: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
process.c:6313: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
process.c:6316: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
process.c:6319: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
process.c:6322: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
process.c:6325: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
process.c:6328: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
process.c:6331: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
process.c:6334: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
process.c:6337: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
process.c:6340: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
process.c:6343: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
process.c:6346: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
process.c:6349: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
process.c:6352: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
process.c:6355: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
process.c:6358: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
process.c:6361: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
process.c:6364: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
process.c:6367: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
process.c:6370: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
process.c:6373: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
process.c:6376: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
process.c:6379: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
process.c:6382: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
process.c:6385: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
process.c:6388: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness
process.c:6391: warning: pointer targets in passing argument 2 of  
‘xstricmp’ differ in signedness

callproc.c: In function ‘Fcall_process’:
callproc.c:395: warning: pointer targets in passing argument 1 of  
‘emacs_open’ differ in signedness
callproc.c:542: warning: pointer targets in passing argument 1 of  
‘creat’ differ in signedness
callproc.c:813: warning: pointer targets in passing argument 1 of  
‘insert_1_both’ differ in signedness
callproc.c:830: warning: pointer targets in passing argument 2 of  
‘detect_coding’ differ in signedness
callproc.c:840: warning: pointer targets in passing argument 2 of  
‘decode_coding’ differ in signedness
callproc.c:840: warning: pointer targets in passing argument 3 of  
‘decode_coding’ differ in signedness
callproc.c:862: warning: pointer targets in passing argument 1 of  
‘insert_1_both’ differ in signedness
callproc.c:900: warning: pointer targets in passing argument 1 of  
‘insert_1_both’ differ in signedness
callproc.c:928: warning: pointer targets in initialization differ in  
signedness
callproc.c:928: warning: pointer targets in initialization differ in  
signedness
callproc.c: In function ‘child_setup’:
callproc.c:1339: warning: pointer targets in passing argument 1 of  
‘strncmp’ differ in signedness
callproc.c:1371: warning: pointer targets in passing argument 1 of  
‘strlen’ differ in signedness
callproc.c:1374: warning: pointer targets in passing argument 2 of  
‘strcat’ differ in signedness
callproc.c:1382: warning: pointer targets in passing argument 3 of  
‘add_env’ differ in signedness
callproc.c: In function ‘init_callproc’:
callproc.c:1727: warning: pointer targets in passing argument 1 of  
‘access’ differ in signedness
callproc.c:1733: warning: pointer targets in passing argument 1 of  
‘access’ differ in signedness
callproc.c: In function ‘Fgetenv_internal’:
callproc.c:1606: warning: pointer targets in passing argument 1 of  
‘getenv_internal_1’ differ in signedness

doprnt.c: In function ‘doprnt1’:
doprnt.c:249: warning: pointer targets in passing argument 1 of  
‘strlen’ differ in signedness
doprnt.c:257: warning: pointer targets in passing argument 1 of  
‘strlen’ differ in signedness
doprnt.c:280: warning: pointer targets in passing argument 1 of  
‘strwidth’ differ in signedness



--
Mit friedvollen Grüßen

   Pete

Engineer: a mechanism for converting caffeine into designs

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

* Re: 23.0.50; dbus
  2007-12-31 21:43         ` Michael Albinus
  2007-12-31 22:26           ` Andreas Schwab
@ 2008-01-02  3:06           ` Stefan Monnier
  2008-01-02  5:10             ` Michael Albinus
  1 sibling, 1 reply; 27+ messages in thread
From: Stefan Monnier @ 2008-01-02  3:06 UTC (permalink / raw)
  To: Michael Albinus; +Cc: Peter Dyballa, emacs-devel

> Here I'm lost. I use something like

>   if (NILP (uname) || (strlen (SDATA (uname)) > 0))

> uname is a Lisp_Object. SDATA (uname) returns (char *). What kind of
> signedness do I break in strlen? Does anybody have an idea?

Someone else already answered the question, but I'll just take the
opportunity to point out that the above code is a common small bug:
the strlen may crash if uname is neither nil nor a string.
A better way to write such code is

   if (STRINGP (uname) && (strlen (SDATA (uname)) > 0))

Another benefit is that the compiler can do a better job of
eliminating the (now) redundant STRINGP test that may lurk
inside SDATA.


        Stefan

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

* Re: 23.0.50; dbus
  2008-01-02  3:06           ` Stefan Monnier
@ 2008-01-02  5:10             ` Michael Albinus
  2008-01-02 11:40               ` Thien-Thi Nguyen
  2008-01-02 15:01               ` Stefan Monnier
  0 siblings, 2 replies; 27+ messages in thread
From: Michael Albinus @ 2008-01-02  5:10 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Peter Dyballa, emacs-devel

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> Here I'm lost. I use something like
>
>>   if (NILP (uname) || (strlen (SDATA (uname)) > 0))
>
>> uname is a Lisp_Object. SDATA (uname) returns (char *). What kind of
>> signedness do I break in strlen? Does anybody have an idea?
>
> Someone else already answered the question, but I'll just take the
> opportunity to point out that the above code is a common small bug:
> the strlen may crash if uname is neither nil nor a string.
> A better way to write such code is
>
>    if (STRINGP (uname) && (strlen (SDATA (uname)) > 0))

Not really. NILP (uname) is explicitely one condition for the "then"
branch, that's intended. A robust check would be

   if (NILP (uname) || (STRINGP (uname) && (strlen (SDATA (uname)) > 0)))

I'm relatively sure that, if uname is non-nil, it must be a
string. However, an additional check wouldn't hurt.

> Another benefit is that the compiler can do a better job of
> eliminating the (now) redundant STRINGP test that may lurk
> inside SDATA.

Yes. But I still don't know what to do in the MacOS case, where tons of
compiler warnings are raised due to the signedness of the SDATA return
value. Peter has shown it in a recent message. Shall we always cast the
type like "strlen ((char *) SDATA (uname))"? This would affect much more
files but dbusbind.c.

>         Stefan

Best regards, Michael.

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

* Re: 23.0.50; dbus
  2008-01-02  5:10             ` Michael Albinus
@ 2008-01-02 11:40               ` Thien-Thi Nguyen
  2008-01-02 12:48                 ` Michael Albinus
  2008-01-02 15:01               ` Stefan Monnier
  1 sibling, 1 reply; 27+ messages in thread
From: Thien-Thi Nguyen @ 2008-01-02 11:40 UTC (permalink / raw)
  To: Michael Albinus; +Cc: emacs-devel

() Michael Albinus <michael.albinus@gmx.de>
() Wed, 02 Jan 2008 06:10:00 +0100

   Yes. But I still don't know what to do in the MacOS case,
   where tons of compiler warnings are raised due to the
   signedness of the SDATA return value. Peter has shown it
   in a recent message. Shall we always cast the type like
   "strlen ((char *) SDATA (uname))"? This would affect much
   more files but dbusbind.c.

a quick scan of dbusbind.c shows these two cases:

   1089:      && (strlen (SDATA (service)) > 0)
   1104:  if (NILP (uname) || (strlen (SDATA (uname)) > 0))

i see in fns.c the following:

  DEFUN ("string-bytes", Fstring_bytes, Sstring_bytes, 1, 1, 0,
         doc: /* Return the number of bytes in STRING.
  If STRING is a multibyte string, this is greater than the
  length of STRING.  */)
       (string)
       Lisp_Object string;
  {
    CHECK_STRING (string);
    return make_number (SBYTES (string));
  }
  
so i suggest using `SBYTES (uname)' directly
instead of `strlen (SDATA (uname)) > 0'.

thi

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

* Re: 23.0.50; dbus
  2008-01-02 11:40               ` Thien-Thi Nguyen
@ 2008-01-02 12:48                 ` Michael Albinus
  2008-01-02 13:41                   ` Thien-Thi Nguyen
  0 siblings, 1 reply; 27+ messages in thread
From: Michael Albinus @ 2008-01-02 12:48 UTC (permalink / raw)
  To: Thien-Thi Nguyen; +Cc: emacs-devel

Thien-Thi Nguyen <ttn@gnuvola.org> writes:

> so i suggest using `SBYTES (uname)' directly
> instead of `strlen (SDATA (uname)) > 0'.

Thanks for the hint; I'll do so. It could be applied in other files as
well.

But this does not solve the problem in general for other cases, like
"strcmp (SDATA ...)".

> thi

Best regards, Michael.

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

* Re: 23.0.50; dbus
  2008-01-02 12:48                 ` Michael Albinus
@ 2008-01-02 13:41                   ` Thien-Thi Nguyen
  0 siblings, 0 replies; 27+ messages in thread
From: Thien-Thi Nguyen @ 2008-01-02 13:41 UTC (permalink / raw)
  To: Michael Albinus; +Cc: emacs-devel

() Michael Albinus <michael.albinus@gmx.de>
() Wed, 02 Jan 2008 13:48:05 +0100

   But this does not solve the problem in general for other
   cases, like "strcmp (SDATA ...)".

i think unless such portions of code are performance-bound,
they should be using lisp functions, such as `string=',
i.e, Fstring_equal.  when this involves making some C
strings into Lisp strings, that would be a hint that
 - there may be a useful Lisp-accessible interface
   lurking there (for a future refactoring session);
 - the code might be (someday) amenable to being
   autogenerated.

the latter part is long-term wishful thinking, but the
former part (using Fstring_equal, for instance) is worth
looking into now or whenever possible.

in summary, i think migrating away from strcmp and friends
is good for maintenance of emacs (and its programmers ;--).

thi

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

* Re: 23.0.50; dbus
  2008-01-02  5:10             ` Michael Albinus
  2008-01-02 11:40               ` Thien-Thi Nguyen
@ 2008-01-02 15:01               ` Stefan Monnier
  2008-01-02 23:32                 ` Michael Albinus
  1 sibling, 1 reply; 27+ messages in thread
From: Stefan Monnier @ 2008-01-02 15:01 UTC (permalink / raw)
  To: Michael Albinus; +Cc: Peter Dyballa, emacs-devel

> Yes. But I still don't know what to do in the MacOS case, where tons of
> compiler warnings are raised due to the signedness of the SDATA return
> value. Peter has shown it in a recent message. Shall we always cast the
> type like "strlen ((char *) SDATA (uname))"? This would affect much more
> files but dbusbind.c.

Use the -Wno-sign (or whatever its name is) to disable those warnings.


        Stefan

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

* Re: 23.0.50; dbus
  2008-01-02 15:01               ` Stefan Monnier
@ 2008-01-02 23:32                 ` Michael Albinus
  2008-01-02 23:59                   ` Peter Dyballa
  2008-01-03 12:28                   ` Jan Djärv
  0 siblings, 2 replies; 27+ messages in thread
From: Michael Albinus @ 2008-01-02 23:32 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Peter Dyballa, emacs-devel

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> Yes. But I still don't know what to do in the MacOS case, where tons of
>> compiler warnings are raised due to the signedness of the SDATA return
>> value. Peter has shown it in a recent message. Shall we always cast the
>> type like "strlen ((char *) SDATA (uname))"? This would affect much more
>> files but dbusbind.c.
>
> Use the -Wno-sign (or whatever its name is) to disable those warnings.

"-Wno-pointer-sign" shall be good for I guess. It is enabled by default
in configure, when the compiler supports it. But I haven't seen it in
the gcc calls on MacOS X, Peter has given some postings ago in this
thread. Again, I have no access to such a machine.

>         Stefan

Best regards, Michael.

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

* Re: 23.0.50; dbus
  2008-01-02 23:32                 ` Michael Albinus
@ 2008-01-02 23:59                   ` Peter Dyballa
  2008-01-03 12:28                   ` Jan Djärv
  1 sibling, 0 replies; 27+ messages in thread
From: Peter Dyballa @ 2008-01-02 23:59 UTC (permalink / raw)
  To: Michael Albinus; +Cc: Stefan Monnier, emacs-devel


Am 03.01.2008 um 00:32 schrieb Michael Albinus:

> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>
>>> Yes. But I still don't know what to do in the MacOS case, where  
>>> tons of
>>> compiler warnings are raised due to the signedness of the SDATA  
>>> return
>>> value. Peter has shown it in a recent message. Shall we always  
>>> cast the
>>> type like "strlen ((char *) SDATA (uname))"? This would affect  
>>> much more
>>> files but dbusbind.c.
>>
>> Use the -Wno-sign (or whatever its name is) to disable those  
>> warnings.
>
> "-Wno-pointer-sign" shall be good for I guess. It is enabled by  
> default
> in configure, when the compiler supports it. But I haven't seen it in
> the gcc calls on MacOS X, Peter has given some postings ago in this
> thread. Again, I have no access to such a machine.

-Wno-pointer-sign
Don't warn for pointer argument passing or assignment with different  
signedness. Only useful in the negative form since this warning is  
enabled by default. This option is only supported for C and Objective-C.
-Wsign-compare
Warn when a comparison between signed and unsigned values could  
produce an incorrect result when the signed value is converted to  
unsigned. This warning is also enabled by -Wextra; to get the other  
warnings of -Wextra without this warning, use -Wextra -Wno-sign-compare.

I can try them next time, as -Wno-pointer-sign or as -Wno-sign-compare.

--
Greetings
   Pete

The light at the end of the tunnel has been turned off due to budget  
cuts.

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

* Re: 23.0.50; dbus
  2008-01-02 23:32                 ` Michael Albinus
  2008-01-02 23:59                   ` Peter Dyballa
@ 2008-01-03 12:28                   ` Jan Djärv
  2008-01-05 15:25                     ` Peter Dyballa
  1 sibling, 1 reply; 27+ messages in thread
From: Jan Djärv @ 2008-01-03 12:28 UTC (permalink / raw)
  To: Michael Albinus; +Cc: Peter Dyballa, Stefan Monnier, emacs-devel



Michael Albinus skrev:
> Stefan Monnier <monnier@iro.umontreal.ca> writes:
> 
>>> Yes. But I still don't know what to do in the MacOS case, where tons of
>>> compiler warnings are raised due to the signedness of the SDATA return
>>> value. Peter has shown it in a recent message. Shall we always cast the
>>> type like "strlen ((char *) SDATA (uname))"? This would affect much more
>>> files but dbusbind.c.
>> Use the -Wno-sign (or whatever its name is) to disable those warnings.
> 
> "-Wno-pointer-sign" shall be good for I guess. It is enabled by default
> in configure, when the compiler supports it.

But only if you don't specify your own CFLAGS to configure.

	Jan D.

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

* Re: 23.0.50; dbus
  2008-01-03 12:28                   ` Jan Djärv
@ 2008-01-05 15:25                     ` Peter Dyballa
  0 siblings, 0 replies; 27+ messages in thread
From: Peter Dyballa @ 2008-01-05 15:25 UTC (permalink / raw)
  To: Jan Djärv; +Cc: Michael Albinus, Stefan Monnier, emacs-devel


Am 03.01.2008 um 13:28 schrieb Jan Djärv:

>
>
> Michael Albinus skrev:
>> Stefan Monnier writes:
>>>> Yes. But I still don't know what to do in the MacOS case, where  
>>>> tons of
>>>> compiler warnings are raised due to the signedness of the SDATA  
>>>> return
>>>> value. Peter has shown it in a recent message. Shall we always  
>>>> cast the
>>>> type like "strlen ((char *) SDATA (uname))"? This would affect  
>>>> much more
>>>> files but dbusbind.c.
>>> Use the -Wno-sign (or whatever its name is) to disable those  
>>> warnings.
>> "-Wno-pointer-sign" shall be good for I guess. It is enabled by  
>> default
>> in configure, when the compiler supports it.
>
> But only if you don't specify your own CFLAGS to configure.
>


Adding -Wno-pointer-sign to my CFLAGS set removes most of the  
warnings, no-one left for D-Bus!

--
Greetings

   Pete

A common mistake that people make when trying to design something  
completely foolproof is to underestimate the ingenuity of complete  
fools.

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

end of thread, other threads:[~2008-01-05 15:25 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-10 12:00 23.0.50; dbus Peter Dyballa
2007-12-10 12:24 ` William Xu
2007-12-10 12:47   ` Jason Rumney
2007-12-10 12:56     ` Jason Rumney
2007-12-14 21:58 ` Michael Albinus
2007-12-15 10:41   ` Peter Dyballa
2007-12-16 22:57     ` Michael Albinus
2007-12-17 11:04       ` Peter Dyballa
2007-12-17 11:38         ` Michael Albinus
2007-12-21  0:05         ` Stefan Monnier
2007-12-21 19:49           ` Richard Stallman
2007-12-23 16:10       ` Peter Dyballa
2007-12-31 21:43         ` Michael Albinus
2007-12-31 22:26           ` Andreas Schwab
2008-01-01 10:46             ` Michael Albinus
2008-01-01 11:28               ` Peter Dyballa
2008-01-02  3:06           ` Stefan Monnier
2008-01-02  5:10             ` Michael Albinus
2008-01-02 11:40               ` Thien-Thi Nguyen
2008-01-02 12:48                 ` Michael Albinus
2008-01-02 13:41                   ` Thien-Thi Nguyen
2008-01-02 15:01               ` Stefan Monnier
2008-01-02 23:32                 ` Michael Albinus
2008-01-02 23:59                   ` Peter Dyballa
2008-01-03 12:28                   ` Jan Djärv
2008-01-05 15:25                     ` Peter Dyballa
2007-12-24 12:43       ` Peter Dyballa

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.