GNU bug report logs - #54694
29.0.50; w32menu.o set_frame_menubar warning building on win32

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Corwin Brust <corwin@HIDDEN>; dated Sun, 3 Apr 2022 16:16:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'minor' from 'normal' Request was from Stefan Kangas <stefan@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 3 Apr 2022 16:15:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 03 12:15:44 2022
Received: from localhost ([127.0.0.1]:49323 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nb2tE-0004wt-C8
	for submit <at> debbugs.gnu.org; Sun, 03 Apr 2022 12:15:44 -0400
Received: from lists.gnu.org ([209.51.188.17]:54118)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mplscorwin@HIDDEN>) id 1nb2tC-0004wg-Ci
 for submit <at> debbugs.gnu.org; Sun, 03 Apr 2022 12:15:42 -0400
Received: from eggs.gnu.org ([209.51.188.92]:51360)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <mplscorwin@HIDDEN>)
 id 1nb2tB-0007EQ-KI
 for bug-gnu-emacs@HIDDEN; Sun, 03 Apr 2022 12:15:41 -0400
Received: from mail-ed1-f49.google.com ([209.85.208.49]:38474)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <mplscorwin@HIDDEN>)
 id 1nb2t9-00049X-0W
 for bug-gnu-emacs@HIDDEN; Sun, 03 Apr 2022 12:15:41 -0400
Received: by mail-ed1-f49.google.com with SMTP id f18so3296015edc.5
 for <bug-gnu-emacs@HIDDEN>; Sun, 03 Apr 2022 09:15:38 -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=3YxpLQ39wO6AGDVvcDhFjcLwIeAqcQAYNmwVi/SYcBc=;
 b=UJHk8K0SR+7YkfYMGWzvkCFlymdERXzNiUymaFd96438EbBkfve6udEs4V68rXnQCv
 VWZ2T2ocT/p6LCaeskgWv1UrysHyiAquPzNSo/dmjW4vYROiy0e/frgPoPif/lR6/p3H
 qjb8mVP8wyV3jks5CMYNmMV6Rn22SwzsJdMv9f4XN9cIqvINT5NN4Kal8ZZyffcRSoIC
 QfDergjvW1CN7w9xKtcSoqbktz3iKMZSJuhyaL1Kg7KisSsInI9OsEG7CKS5Jvch0KW/
 r9h9aAmXpx0pP7XMRZupT96sT5dV7TKu6aijTDtHkv5bc4AHkAXlUQPZSKySCgGu76+2
 F90Q==
X-Gm-Message-State: AOAM532XZjoNGi2qnJ80yQrF720Tvb2vLuOhL6Cjg4Tx+XOB71DVssem
 LxMipaFwMcSu12X/rF6cT7qI32HN5wjQmCUii3ZYjF9RrR8=
X-Google-Smtp-Source: ABdhPJzvO9kGlyzUJx7frmxWxOewoqHgvWyViNwuc15mxlmTbXvNiNflcL6BdS2YLhJnaoGs0MLwCutaXyLR13YXjws=
X-Received: by 2002:a05:6402:2743:b0:419:4edd:c487 with SMTP id
 z3-20020a056402274300b004194eddc487mr29680300edd.325.1649002537206; Sun, 03
 Apr 2022 09:15:37 -0700 (PDT)
MIME-Version: 1.0
From: Corwin Brust <corwin@HIDDEN>
Date: Sun, 3 Apr 2022 11:15:26 -0500
Message-ID: <CAJf-WoSr4HK0U5nqJqC-Ht3ziU4WsNptNqSu-DNRhx_A2FtLBA@HIDDEN>
Subject: 29.0.50; w32menu.o set_frame_menubar warning building on win32
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=209.85.208.49; envelope-from=mplscorwin@HIDDEN;
 helo=mail-ed1-f49.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-Spam-Score: -0.8 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.8 (-)

  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 '<unknown>' 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];
      |                 ^~~~~~~~


Creating bug reports for each of the warnings found building from the
master branch on win32 as requested in this thread:
  https://lists.gnu.org/archive/html/emacs-devel/2022-04/msg00069.html

NOTE, the resulting Emacs does launch; I've used it to prepare this bug report.

In GNU Emacs 29.0.50 (build 1, x86_64-w64-mingw32)
 of 2022-04-02 built on AVALON
Repository revision: be21c95842f37e164606a6b392f5396d91506f61
Repository branch: master
Windowing system distributor 'Microsoft Corp.', version 10.0.19043
System Description: Microsoft Windows 10 Home (v10.0.2009.19043.1620)

Configured using:
 'configure --without-dbus --with-native-compilation
 --without-compress-install -C 'CFLAGS=-O2 -g3''

Configured features:
ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP
NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS WEBP XPM ZLIB

Important settings:
  value of $LANG: ENU
  locale-coding-system: cp1252

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message mailcap yank-media rmc puny
dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg
rfc6068 epg-config gnus-util text-property-search time-date mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils comp
comp-cstr warnings rx cl-seq cl-macs cl-extra help-mode seq gv subr-x
byte-opt cl-loaddefs cl-lib bytecomp byte-compile cconv iso-transl
tooltip eldoc paren electric uniquify ediff-hook vc-hooks
lisp-float-type elisp-mode mwheel dos-w32 ls-lisp disp-table
term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu
timer select scroll-bar mouse jit-lock font-lock syntax font-core
term/tty-colors frame minibuffer nadvice simple cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop
case-table epa-hook jka-cmpr-hook help abbrev obarray cl-preloaded
button loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty
make-network-process native-compile emacs)

Memory information:
((conses 16 97418 4795)
 (symbols 48 7260 1)
 (strings 32 27729 2155)
 (string-bytes 1 908575)
 (vectors 16 21660)
 (vector-slots 8 370022 32300)
 (floats 8 41 312)
 (intervals 56 237 0)
 (buffers 992 11))




Acknowledgement sent to Corwin Brust <corwin@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#54694; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 8 Jun 2022 01:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.