From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Cecilio Pardo Newsgroups: gmane.emacs.bugs Subject: bug#38040: Compiler warnings on win32 build Date: Sun, 03 Nov 2019 01:36:41 +0100 Message-ID: <861ruppzhi.fsf@inmotica-integral.es> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="91744"; mail-complaints-to="usenet@blaine.gmane.org" To: 38040@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 03 01:37:11 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iR3tG-000Nkk-TS for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Nov 2019 01:37:11 +0100 Original-Received: from localhost ([::1]:51404 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iR3tF-0005BG-Nz for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Nov 2019 20:37:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42658) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iR3t9-0005B9-MX for bug-gnu-emacs@gnu.org; Sat, 02 Nov 2019 20:37:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iR3t8-0006DP-Mq for bug-gnu-emacs@gnu.org; Sat, 02 Nov 2019 20:37:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52685) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iR3t8-0006D5-K5 for bug-gnu-emacs@gnu.org; Sat, 02 Nov 2019 20:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iR3t8-0005U0-FQ for bug-gnu-emacs@gnu.org; Sat, 02 Nov 2019 20:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Cecilio Pardo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Nov 2019 00:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38040 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.157274141321050 (code B ref -1); Sun, 03 Nov 2019 00:37:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Nov 2019 00:36:53 +0000 Original-Received: from localhost ([127.0.0.1]:33273 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iR3sy-0005TS-UP for submit@debbugs.gnu.org; Sat, 02 Nov 2019 20:36:53 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:34110) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iR3sx-0005TJ-9O for submit@debbugs.gnu.org; Sat, 02 Nov 2019 20:36:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42633) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iR3sw-0005Ak-6a for bug-gnu-emacs@gnu.org; Sat, 02 Nov 2019 20:36:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iR3su-0005tM-UE for bug-gnu-emacs@gnu.org; Sat, 02 Nov 2019 20:36:49 -0400 Original-Received: from mout.kundenserver.de ([212.227.17.10]:47277) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iR3su-0005eY-LA for bug-gnu-emacs@gnu.org; Sat, 02 Nov 2019 20:36:48 -0400 Original-Received: from there ([88.20.79.170]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.158]) with ESMTPA (Nemesis) id 1N5G5b-1i00xK0A33-011CQp for ; Sun, 03 Nov 2019 01:36:43 +0100 X-Provags-ID: V03:K1:MubU03SME2BnXQ1/auZmX/xvXdv9DhZXNc7Gmny3rUWWIQNq9LH p0DVSV2ceOd4wJ4f1JmGrjJorQrtO9KlescUyCFYrBZYO3mUBnrwHkYdzvt5Fg7RsSs3XWY uqOsX37g7JOKfUJEcs/YDTbbGqiomsNwQvFmfnPMk1HyEnTtJkQ/qPfMaxFdabS04cB6V3f dx1EWjL4YdbXskvdG8KNw== X-UI-Out-Filterresults: notjunk:1;V03:K0:7+4CmBdR7Fc=:gkCBkm1b2Dh9Hc1DHyLLuE ZWILq2mzxf6xJYlap7XGkGnZJzLFqoy21cbKr/l9TgB42ESbV0K9dKuqZeafM+Rxn8pjw+CQ+ LHJ9m9QfO2F6QjC5QB1qriRHPdBBwptrVsW3GidAMKqZKx7uhx5Q7sYszJYe66uYq44EZFMXR 1FZiVyBr7g2gDJCQC+zjqAWvDqUPyqRAAgk+owFYGBMJoywf0l3ZUMWBZ/CSDvWesxtUloHq7 RQlxROyxyfIjO3yTfUZQXCtsrIUE8d8OrDmIpo3i8sgq7H8Nd5ymeGniTjaSHhjoaykQVgM+I slR6oW2DcxIyx13rEWlQRRaIEN9Eao1mCAbAfvWN/0nc7KoCZenZQziqSheEErMk+8qN4yB0l qf1Z2fCCyESS/c3+1ciHpdXJWhZk+a1J1H2WGB3vA09vrxttEO53Pvrl3uq4zR4Ht0xkkY+BL GA2Ym8alWTJlBSPPIeQE8CgHNSXR8b0/7KXYLPqQ8tjXYXy5hR/45tsFFRA6ENIZFzcoxp16E VbIfKutDB8sXjTtHFEs9vG6kpA6yQHFkkcbkLP9D8I6BEmLHnEheteSkdWry86RngF3S1KsRG CaYnlqUXef3ZrGwsLtQBoJrw7GhwTYYFa/+kvJV9+qeWYEbuH2kxjkN9CuKoc6Lpbn7wwVhSb 0qBYJwW4IRnVWg73cVnszyMej0zewLbPMaw2Mg1Q9iaIeo4qKd5//4Hov23Yx76JvKAP31A5l ekOJ5jGhMHC24zMc17qxi0Amzkg2/hu9Z+6TqVHW8i/4g+FJ5rdb9AtOsN6YTpJqIJwwC16J X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:170855 Archived-At: Severity: wishlist Tags: patch Building with mingw64, there are a couple of warnings about wrong data types that can be avoided: diff --git a/nt/addpm.c b/nt/addpm.c index a8bcd4a5c7..ff169f7d87 100644 --- a/nt/addpm.c +++ b/nt/addpm.c @@ -56,13 +56,13 @@ #define COBJMACROS 1 #include "../src/epaths.h" #endif -HDDEDATA CALLBACK DdeCallback (UINT, UINT, HCONV, HSZ, HSZ, HDDEDATA, DWORD, - DWORD); +HDDEDATA CALLBACK DdeCallback (UINT, UINT, HCONV, HSZ, HSZ, HDDEDATA, ULONG_PTR, + ULONG_PTR); HDDEDATA CALLBACK DdeCallback (UINT uType, UINT uFmt, HCONV hconv, HSZ hsz1, HSZ hsz2, HDDEDATA hdata, - DWORD dwData1, DWORD dwData2) + ULONG_PTR dwData1, ULONG_PTR dwData2) { return ((HDDEDATA) NULL); } diff --git a/nt/ddeclient.c b/nt/ddeclient.c index e441700397..a63be13f75 100644 --- a/nt/ddeclient.c +++ b/nt/ddeclient.c @@ -21,13 +21,13 @@ #include #include -HDDEDATA CALLBACK DdeCallback (UINT, UINT, HCONV, HSZ, HSZ, HDDEDATA, DWORD, - DWORD); +HDDEDATA CALLBACK DdeCallback (UINT, UINT, HCONV, HSZ, HSZ, HDDEDATA, ULONG_PTR, + ULONG_PTR); HDDEDATA CALLBACK DdeCallback (UINT uType, UINT uFmt, HCONV hconv, HSZ hsz1, HSZ hsz2, HDDEDATA hdata, - DWORD dwData1, DWORD dwData2) + ULONG_PTR dwData1, ULONG_PTR dwData2) { return ((HDDEDATA) NULL); }