From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Corwin Brust Newsgroups: gmane.emacs.devel Subject: warnings in win32 builds from trunk Date: Sat, 2 Apr 2022 18:33:27 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26661"; mail-complaints-to="usenet@ciao.gmane.io" To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Apr 03 01:34:17 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nanG5-0006gQ-3g for ged-emacs-devel@m.gmane-mx.org; Sun, 03 Apr 2022 01:34:17 +0200 Original-Received: from localhost ([::1]:36586 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nanG3-00086p-Js for ged-emacs-devel@m.gmane-mx.org; Sat, 02 Apr 2022 19:34:15 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35176) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nanFW-0007Lf-SW for emacs-devel@gnu.org; Sat, 02 Apr 2022 19:33:42 -0400 Original-Received: from mail-ed1-f41.google.com ([209.85.208.41]:35478) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nanFU-0002w0-Ut for emacs-devel@gnu.org; Sat, 02 Apr 2022 19:33:42 -0400 Original-Received: by mail-ed1-f41.google.com with SMTP id g22so7017370edz.2 for ; Sat, 02 Apr 2022 16:33:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=nEQIB6r1EKs0eWZm6TqJM3DHkEdyWaIXe58N2nQi1Sw=; b=8IhNkdzFt9E7nnarMF319098RFFCHy0oJCxDdAh+HbQw1qiz8kdFcHgrClYChFctrs QViBeMhVTde3Z/OgPC++9x0qb7AlC6lrjBw49GIFcqqJ5aejqImoddhNHfSta9s8pRWl KcU6E/yLXD40Gdt8LXO8PENkp6uBh5ghBko+lOu/Z5Aicus1a0HUkCdx2nCsNhEAUvVK Q1PiuGSJoOw9TOZp7W7PueFiK7wcwm/xZhWt0UyPKcYuaJeFJ5F0ou3CRjFaMmRXqvCp /U2f0z24VZPKyNVrSFJl6BW9DhCJpYlp8C29eAqGypNjtFi+LlYB7y4c2+ulWFn2h7tu UkqQ== X-Gm-Message-State: AOAM5337cd2EBwkmVURuJY4YfLOI3eHNkHt5AZOOCJaspELjcZZKFkw5 C35BUGUetuJfoVRyJHZbc2Q7VmHvH8bhbwAU7L8ZjZOgG9g= X-Google-Smtp-Source: ABdhPJzvdSg7eT8bVTbwFD3CQwHdX7SxyPZOY7eKWwQ40Jtbx6l9MOacEA/0T0dOmQXMDhSo2kBByl5kC/zFtRhANDU= X-Received: by 2002:aa7:d58e:0:b0:419:c121:ea33 with SMTP id r14-20020aa7d58e000000b00419c121ea33mr26577856edq.256.1648942418636; Sat, 02 Apr 2022 16:33:38 -0700 (PDT) Received-SPF: pass client-ip=209.85.208.41; envelope-from=mplscorwin@gmail.com; helo=mail-ed1-f41.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:287724 Archived-At: Attempting to build a snapshot from the master branch today I noticed some warnings. Here they are; please let me know if there's else I might helpfully do to troubleshoot/debug these (e.g. open a bug report). Maybe easier to read: https://bpa.st/6EBA Inline (to EOM): CC w32notify.o In file included from C:/Users/corwi/emacs-build/git/master/src/process.c:33: C:/Users/corwi/emacs-build/git/master/src/process.c: In function 'Fmake_process': C:/Users/corwi/emacs-build/git/master/src/lisp.h:1649:31: warning: null pointer dereference [-Wnull-dereference] 1649 | return XSTRING (string)->u.s.data; | ~~~~~~~~~~~~~~~~~~~~~^~~~~ CC profiler.o CC decompress.o CC thread.o CC systhread.o CC sqlite.o CC hbfont.o CC w32fns.o CC w32menu.o CC w32reg.o CC w32font.o CC w32term.o CC w32xfns.o CC w32select.o CC w32uniscribe.o CC w32cygwinx.o CC w32.o CC w32console.o CC w32heap.o CC w32inevt.o CC w32proc.o CC w32image.o CC fontset.o CC fringe.o CC image.o C:/Users/corwi/emacs-build/git/master/src/w32menu.c: In function 'set_frame_menubar': C:/Users/corwi/emacs-build/git/master/src/w32menu.c:324:9: warning: 'memcpy' offset [3, 10] from the object at '' is out of the bounds of referenced subobject 'contents' with type 'struct Lisp_X *[]' at offset 3 [-Warray-bounds] 324 | memcpy (previous_items, XVECTOR (f->menu_bar_vector)->contents, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 325 | previous_menu_items_used * word_size); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from C:/Users/corwi/emacs-build/git/master/src/w32menu.c:26: C:/Users/corwi/emacs-build/git/master/src/lisp.h:1725:17: note: subobject 'contents' declared here 1725 | Lisp_Object contents[FLEXIBLE_ARRAY_MEMBER]; | ^~~~~~~~ C:/Users/corwi/emacs-build/git/master/src/w32heap.c: In function 'getrlimit': C:/Users/corwi/emacs-build/git/master/src/w32heap.c:853:14: warning: 'm' may be used uninitialized [-Wmaybe-uninitialized] 853 | if (!VirtualQuery ((LPCVOID) &m, &m, sizeof m)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from C:/msys2/mingw64/x86_64-w64-mingw32/include/winbase.h:25, from C:/msys2/mingw64/x86_64-w64-mingw32/include/windows.h:70, from C:/Users/corwi/emacs-build/git/master/src/w32common.h:24, from C:/Users/corwi/emacs-build/git/master/src/w32heap.c:54: C:/msys2/mingw64/x86_64-w64-mingw32/include/memoryapi.h:45:28: note: by argument 1 of type 'LPCVOID' {aka 'const void *'} to 'VirtualQuery' declared here 45 | WINBASEAPI SIZE_T WINAPI VirtualQuery (LPCVOID lpAddress, PMEMORY_BASIC_INFORMATION lpBuffer, SIZE_T dwLength); | ^~~~~~~~~~~~ C:/Users/corwi/emacs-build/git/master/src/w32heap.c:844:34: note: 'm' declared here 844 | MEMORY_BASIC_INFORMATION m; | ^ CC json.o CC tparam.o