unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Fabrice Popineau <fabrice.popineau@centralesupelec.fr>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Richard Copley <rcopley@gmail.com>,
	Emacs developers <emacs-devel@gnu.org>
Subject: Re: Suspicious warning in W64 build
Date: Tue, 12 Sep 2017 20:01:58 +0200	[thread overview]
Message-ID: <CAFgFV9NEv0aa7VObkYsf2dTxU1BrH+pJcDKTRxi5xyKnVjDk5Q@mail.gmail.com> (raw)
In-Reply-To: <83ingnq01t.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 5368 bytes --]

2017-09-12 19:49 GMT+02:00 Eli Zaretskii <eliz@gnu.org>:

> > Date: Sat, 09 Sep 2017 19:07:23 +0300
> > From: Eli Zaretskii <eliz@gnu.org>
> > Cc: angelo.g0@libero.it, emacs-devel@gnu.org
> >
> > > At least some of the "-Wformat=" warnings are misleading.
> > > Emacs has to use MSVC's rules for format strings, but GCC
> > > warns based on the C standard rules implemented in GCC.
> >
> > Actually, these are the most worrisome, because they seem to tell your
> > MinGW headers might mismatch your GCC version.  Or maybe this is a
> > general MinGW64 problem that should be solved by MinGW64 developers.
>
> OK, I got some information from the MinGW64 developers, but now I need
> your help, Richard.  I need you to produce preprocessed versions of
> frame.c, keyboard.c, and print.c, and send them to me.
>
> Do you know how to produce such preprocessed versions?  They need to
> be produced using the exact GCC switches used when these files are
> compiled as part of the build.  Let me know if you need instructions.
>
>
As an alternative, I can provide them.
I have the same install with the same warnings.

Should you want them, they are at this address :
https://drive.google.com/file/d/0BzJyP_aI_ouHOWR6YXZ1LTRiam8/view?usp=sharing

Compilation flags :

gcc  -E -mtune=generic  -I/mingw64/include -DUSE_CRT_DLL=1 -I
/d/source/emacs/build-master/../emacs/nt/inc -Demacs  -I. -I../../emacs/src
-I../lib -I../../emacs/lib  -mtune=generic    -pthread -mms-bitfields
-isystem C:/MSys64/mingw64/include/librsvg-2.0 -isystem
C:/MSys64/mingw64/include/gdk-pixbuf-2.0 -isystem
C:/MSys64/mingw64/include/libpng16 -isystem C:/MSys64/mingw64/include/cairo
-isystem C:/MSys64/mingw64/include/pixman-1 -isystem
C:/MSys64/mingw64/include -isystem C:/MSys64/mingw64/include/freetype2
-isystem C:/MSys64/mingw64/include/libpng16 -isystem
C:/MSys64/mingw64/include/harfbuzz -isystem
C:/MSys64/mingw64/include/glib-2.0 -isystem
C:/MSys64/mingw64/lib/glib-2.0/include -isystem C:/MSys64/mingw64/include
-isystem C:/MSys64/mingw64/include/freetype2 -isystem
C:/MSys64/mingw64/include -isystem C:/MSys64/mingw64/include/harfbuzz
-isystem C:/MSys64/mingw64/include/glib-2.0 -isystem
C:/MSys64/mingw64/lib/glib-2.0/include -isystem C:/MSys64/mingw64/include
-isystem C:/MSys64/mingw64/include/libpng16 -isystem
C:/MSys64/mingw64/include -fopenmp -DMAGICKCORE_HDRI_ENABLE=1
-DMAGICKCORE_QUANTUM_DEPTH=16 -D_DLL -D_MT -fopenmp
-DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -D_DLL -D_MT
-isystem C:/MSys64/mingw64/include/ImageMagick-7  -isystem
C:/MSys64/mingw64/include/libxml2            -MMD -MF deps/print.d -MP
 -isystem C:/MSys64/mingw64/include -isystem
C:/MSys64/mingw64/include/p11-kit-1    -fno-common -W -Wabi -Waddress
-Waggressive-loop-optimizations -Wall -Wattributes -Wbool-compare
-Wbool-operation -Wbuiltin-declaration-mismatch -Wbuiltin-macro-redefined
-Wcast-align -Wchar-subscripts -Wchkp -Wclobbered -Wcomment -Wcomments
-Wcoverage-mismatch -Wcpp -Wdangling-else -Wdate-time -Wdeprecated
-Wdeprecated-declarations -Wdesignated-init -Wdisabled-optimization
-Wdiscarded-array-qualifiers -Wdiscarded-qualifiers -Wdiv-by-zero
-Wdouble-promotion -Wduplicated-cond -Wduplicate-decl-specifier
-Wempty-body -Wendif-labels -Wenum-compare -Wexpansion-to-defined -Wextra
-Wformat-contains-nul -Wformat-extra-args -Wformat-security
-Wformat-signedness -Wformat-y2k -Wformat-zero-length -Wframe-address
-Wfree-nonheap-object -Whsa -Wignored-attributes -Wignored-qualifiers
-Wimplicit -Wimplicit-function-declaration -Wimplicit-int
-Wincompatible-pointer-types -Winit-self -Wint-conversion
-Wint-in-bool-context -Wint-to-pointer-cast -Winvalid-memory-model
-Winvalid-pch -Wjump-misses-init -Wlogical-not-parentheses -Wlogical-op
-Wmain -Wmaybe-uninitialized -Wmemset-elt-size -Wmemset-transposed-args
-Wmisleading-indentation -Wmissing-braces -Wmissing-declarations
-Wmissing-include-dirs -Wmissing-parameter-type -Wmissing-prototypes
-Wmultichar -Wnarrowing -Wnested-externs -Wnonnull -Wnonnull-compare
-Wnull-dereference -Wodr -Wold-style-declaration -Wold-style-definition
-Wopenmp-simd -Woverflow -Wpacked -Wpacked-bitfield-compat -Wparentheses
-Wpointer-arith -Wpointer-compare -Wpointer-to-int-cast -Wpragmas -Wpsabi
-Wrestrict -Wreturn-local-addr -Wreturn-type -Wscalar-storage-order
-Wsequence-point -Wshift-count-negative -Wshift-count-overflow
-Wshift-negative-value -Wsizeof-array-argument -Wsizeof-pointer-memaccess
-Wstrict-aliasing -Wstrict-prototypes -Wsuggest-attribute=noreturn
-Wsuggest-final-methods -Wsuggest-final-types -Wswitch-bool
-Wswitch-unreachable -Wtautological-compare -Wtrampolines -Wtrigraphs
-Wuninitialized -Wunknown-pragmas -Wunused -Wunused-but-set-parameter
-Wunused-but-set-variable -Wunused-function -Wunused-label
-Wunused-local-typedefs -Wunused-macros -Wunused-result -Wunused-value
-Wunused-variable -Wvarargs -Wvariadic-macros
-Wvector-operation-performance -Wvolatile-register-var -Wwrite-strings
-Walloc-size-larger-than=2147483647 -Warray-bounds=2 -Wformat-truncation=2
-Wimplicit-fallthrough=5 -Wnormalized=nfc -Wshift-overflow=2
-Wstringop-overflow=2 -Wvla-larger-than=4031
-Wno-missing-field-initializers -Wno-override-init -Wno-sign-compare
-Wno-type-limits -Wno-unused-parameter -Wno-format-nonliteral
-Wno-pointer-sign -I/mingw64/include -O3 -g0 -mtune=corei7
-fomit-frame-pointer  ../../emacs/src/frame.c

Fabrice

[-- Attachment #2: Type: text/html, Size: 6222 bytes --]

  reply	other threads:[~2017-09-12 18:01 UTC|newest]

Thread overview: 123+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-05 13:38 Suspicious warning in W64 build Angelo Graziosi
2017-09-05 14:04 ` Richard Copley
2017-09-07 15:16 ` Eli Zaretskii
2017-09-07 15:42   ` Angelo Graziosi
2017-09-07 17:52     ` Richard Copley
2017-09-07 17:58       ` Richard Copley
2017-09-07 19:00         ` Angelo Graziosi
2017-09-07 19:21           ` Richard Copley
2017-09-09  4:58             ` Herring, Davis
2017-09-09  9:55               ` Richard Copley
2017-09-09 10:20                 ` Eli Zaretskii
2017-09-09 11:24                   ` Angelo Graziosi
2017-09-09 13:25                     ` Eli Zaretskii
2017-09-09 11:16                 ` Angelo Graziosi
2017-09-07 18:58       ` Eli Zaretskii
2017-09-07 19:26         ` Paul Eggert
2017-09-07 19:50           ` Richard Copley
2017-09-07 20:02             ` Richard Copley
2017-09-08  6:49               ` Eli Zaretskii
2017-09-08  8:02                 ` Eli Zaretskii
2017-09-08 19:31                   ` Richard Copley
2017-09-08 20:17                     ` Eli Zaretskii
2017-09-08 21:08                       ` Richard Copley
2017-09-08 21:37                         ` Richard Copley
2017-09-09  7:37                           ` Eli Zaretskii
2017-09-08 22:20                         ` Richard Copley
2017-09-09  7:33                         ` Eli Zaretskii
2017-09-09  9:36                           ` Richard Copley
2017-09-09 10:42                             ` Eli Zaretskii
2017-09-09 10:52                               ` Eli Zaretskii
2017-09-09 11:17                               ` Richard Copley
2017-09-09 16:07                                 ` Eli Zaretskii
2017-09-10  1:01                                   ` Richard Copley
2017-09-10 14:40                                     ` Eli Zaretskii
2017-09-10 19:14                                       ` Richard Copley
2017-09-10 19:38                                         ` Angelo Graziosi
2017-09-11 16:17                                           ` Eli Zaretskii
2017-09-11 22:21                                             ` Angelo Graziosi
2017-09-11 16:39                                           ` Óscar Fuentes
2017-09-11 17:20                                             ` Eli Zaretskii
2017-09-12 17:49                                   ` Eli Zaretskii
2017-09-12 18:01                                     ` Fabrice Popineau [this message]
2017-09-12 18:37                                       ` Richard Copley
2017-09-12 18:59                                         ` Eli Zaretskii
2017-09-12 19:14                                           ` Richard Copley
2017-09-12 18:38                                       ` Eli Zaretskii
2017-09-14 17:47                                         ` Eli Zaretskii
2017-09-14 19:34                                           ` Richard Copley
2017-09-15  8:54                                             ` Eli Zaretskii
2017-09-15 23:05                                               ` Richard Copley
2017-09-16  6:40                                                 ` Eli Zaretskii
2017-09-16  8:19                                                   ` Richard Copley
2017-09-16  8:34                                                     ` Richard Copley
2017-09-16  8:54                                                       ` Eli Zaretskii
2017-09-16  9:07                                                         ` Richard Copley
2017-09-16 11:54                                                           ` Fabrice Popineau
2017-09-16  8:52                                                     ` Eli Zaretskii
2017-09-15  8:59                                             ` Eli Zaretskii
2017-09-15 14:43                                               ` Eli Zaretskii
2017-09-17  6:42                                                 ` Paul Eggert
2017-09-17  7:14                                                   ` Richard Copley
2017-09-17 14:31                                                     ` Eli Zaretskii
2017-09-17  6:40                                               ` Paul Eggert
2017-09-17 14:29                                                 ` Eli Zaretskii
2017-09-17 16:39                                                   ` Fabrice Popineau
2017-09-17 16:52                                                     ` Eli Zaretskii
2017-09-18  0:26                                                   ` Paul Eggert
2017-09-18 11:47                                                     ` Fabrice Popineau
2017-09-18 14:46                                                       ` Eli Zaretskii
2017-09-18  0:01                                                 ` Richard Stallman
2017-09-14 19:36                                           ` Fabrice Popineau
2017-09-14 21:17                                           ` Andy Moreton
2017-09-15  6:55                                             ` Fabrice Popineau
2017-09-15  9:12                                               ` Eli Zaretskii
2017-09-15 15:33                                                 ` Fabrice Popineau
2017-09-15 15:45                                                   ` Eli Zaretskii
2017-09-15 18:15                                                     ` Fabrice Popineau
2017-09-15 19:00                                                       ` Eli Zaretskii
2017-09-15 21:02                                                         ` Fabrice Popineau
2017-09-16  7:45                                                           ` Eli Zaretskii
2017-09-17  7:01                                                             ` Paul Eggert
2017-09-17 14:31                                                               ` Eli Zaretskii
2017-09-17 14:52                                                                 ` Philipp Stephani
2017-09-17 22:34                                                                   ` Paul Eggert
2017-09-17 17:07                                                                 ` Paul Eggert
2017-09-17 17:14                                                                   ` Eli Zaretskii
2017-09-17 18:53                                                                     ` Paul Eggert
2017-09-17 19:30                                                                       ` Eli Zaretskii
2017-09-17 20:34                                                                         ` Paul Eggert
2017-09-18  2:30                                                                           ` Eli Zaretskii
2017-09-18  4:52                                                                             ` Paul Eggert
2017-09-18 14:41                                                                               ` Eli Zaretskii
2017-09-18 17:35                                                                                 ` Paul Eggert
2017-09-18 17:58                                                                                   ` Andy Moreton
2017-09-19  9:05                                                                                     ` Paul Eggert
2017-09-18 18:01                                                                                   ` Eli Zaretskii
2017-09-17 20:45                                                   ` Paul Eggert
2017-09-16 13:17                                                 ` Andy Moreton
2017-09-16 13:46                                                   ` Eli Zaretskii
2017-09-16 18:57                                                     ` Richard Copley
2017-09-16 19:21                                                       ` Eli Zaretskii
2017-09-15  9:03                                             ` Eli Zaretskii
2017-09-09  8:49                       ` Angelo Graziosi
2017-09-09 10:37                         ` Eli Zaretskii
2017-09-09 11:32                           ` Angelo Graziosi
2017-09-09 13:28                             ` Eli Zaretskii
2017-09-09 13:33                               ` Fabrice Popineau
2017-09-09 14:55                               ` Angelo Graziosi
2017-09-09 16:37                                 ` Eli Zaretskii
2017-09-09 18:38                                   ` Angelo Graziosi
2017-09-09 18:59                                     ` Eli Zaretskii
2017-09-09 21:29                                       ` Angelo Graziosi
2017-09-10 14:56                                         ` Eli Zaretskii
2017-09-10 15:45                                           ` Angelo Graziosi
2017-09-10 16:02                                             ` Eli Zaretskii
2017-09-10 18:45                                               ` Angelo Graziosi
2017-09-10 19:43                                                 ` Eli Zaretskii
2017-09-09 15:40                           ` Angelo Graziosi
2017-09-09 16:40                             ` Eli Zaretskii
2017-09-09 18:33                               ` Fabrice Popineau
2017-09-07 20:20           ` Eli Zaretskii
2017-09-07 21:59             ` Angelo Graziosi
2017-09-08  8:01               ` Eli Zaretskii

Reply instructions:

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

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

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

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

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

  git send-email \
    --in-reply-to=CAFgFV9NEv0aa7VObkYsf2dTxU1BrH+pJcDKTRxi5xyKnVjDk5Q@mail.gmail.com \
    --to=fabrice.popineau@centralesupelec.fr \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=rcopley@gmail.com \
    /path/to/YOUR_REPLY

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

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).