diff options
| author | Juanma Barranquero | 2011-10-27 02:59:21 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2011-10-27 02:59:21 +0200 |
| commit | 657d08d30a63536174fe9ec60b7f2cb8de541eb5 (patch) | |
| tree | 9578294de51056cd536639580dd0dcecc2922c8d /lib-src | |
| parent | 6e724ca2c2e36dcd30803c314319b8faf8472e7d (diff) | |
| download | emacs-657d08d30a63536174fe9ec60b7f2cb8de541eb5.tar.gz emacs-657d08d30a63536174fe9ec60b7f2cb8de541eb5.zip | |
src/image.c, src/w32*.c, lib-src/emacsclient.c: Silence warnings under -Wall.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 4 | ||||
| -rw-r--r-- | lib-src/emacsclient.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 984c4d6c880..a8f9a0ac4be 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-10-27 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * emacsclient.c (w32_getenv): Silence compiler warnings. | ||
| 4 | |||
| 1 | 2011-09-07 Glenn Morris <rgm@gnu.org> | 5 | 2011-09-07 Glenn Morris <rgm@gnu.org> |
| 2 | 6 | ||
| 3 | * etags.c (Fortran_functions): Handle "elemental" functions. | 7 | * etags.c (Fortran_functions): Handle "elemental" functions. |
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index ece9dc65c49..76aa21884de 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c | |||
| @@ -359,7 +359,7 @@ w32_getenv (char *envvar) | |||
| 359 | char *value; | 359 | char *value; |
| 360 | DWORD dwType; | 360 | DWORD dwType; |
| 361 | 361 | ||
| 362 | if (value = getenv (envvar)) | 362 | if ((value = getenv (envvar))) |
| 363 | /* Found in the environment. strdup it, because values returned | 363 | /* Found in the environment. strdup it, because values returned |
| 364 | by getenv cannot be free'd. */ | 364 | by getenv cannot be free'd. */ |
| 365 | return xstrdup (value); | 365 | return xstrdup (value); |
| @@ -382,7 +382,7 @@ w32_getenv (char *envvar) | |||
| 382 | { | 382 | { |
| 383 | DWORD size; | 383 | DWORD size; |
| 384 | 384 | ||
| 385 | if (size = ExpandEnvironmentStrings (value, NULL, 0)) | 385 | if ((size = ExpandEnvironmentStrings (value, NULL, 0))) |
| 386 | { | 386 | { |
| 387 | char *buffer = (char *) xmalloc (size); | 387 | char *buffer = (char *) xmalloc (size); |
| 388 | if (ExpandEnvironmentStrings (value, buffer, size)) | 388 | if (ExpandEnvironmentStrings (value, buffer, size)) |