diff options
| author | Eli Zaretskii | 2016-10-10 19:22:40 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2016-10-10 19:22:40 +0300 |
| commit | db677f5dfedc0a665211d1113251e77a01e5d5e3 (patch) | |
| tree | ce9e0e8fd3d0f1b4b55205c7c9e3f519a23dbf5c /src/firstfile.c | |
| parent | fd45b3f604cd52c17bd32fe27c425bc79545f52c (diff) | |
| download | emacs-db677f5dfedc0a665211d1113251e77a01e5d5e3.tar.gz emacs-db677f5dfedc0a665211d1113251e77a01e5d5e3.zip | |
Fix compilation warnings on MS-Windows
* src/w32.c (_ANONYMOUS_UNION, _ANONYMOUS_STRUCT): Remove
definitions of these macros, which seem to be unneeded and cause
compiler warnings.
* src/fileio.c (NOMINMAX): Avoid compiler warnings about unused
macros.
* src/firstfile.c (dummy_main_reference): Rename from 'dummy' and
make it external, to avoid compiler warning.
Diffstat (limited to 'src/firstfile.c')
| -rw-r--r-- | src/firstfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/firstfile.c b/src/firstfile.c index 188d4f81b5c..962d6f6c7f6 100644 --- a/src/firstfile.c +++ b/src/firstfile.c | |||
| @@ -26,7 +26,7 @@ char my_begbss[1]; /* Do not initialize this variable. */ | |||
| 26 | static char _my_begbss[1]; | 26 | static char _my_begbss[1]; |
| 27 | char * my_begbss_static = _my_begbss; | 27 | char * my_begbss_static = _my_begbss; |
| 28 | 28 | ||
| 29 | /* Add a dummy reference to ensure emacs.obj is linked in. */ | 29 | /* Add a dummy reference to ensure emacs.o is linked in. */ |
| 30 | extern int main (int, char **); | 30 | extern int main (int, char **); |
| 31 | static int (*dummy) (int, char **) = main; | 31 | int (*dummy_main_reference) (int, char **) = main; |
| 32 | #endif | 32 | #endif |