X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-transfer-encoding; bh=L6IxGARY2MDo0uEIXWFZI5a0XX5iKKpw7e4cuxKpfNY=; b=q9AWYxmR7PYbJUh4fpXYVZGtGB3wyodRuxwNcGnE0eGw82Jjsfs0K7QTzknbEX//UQ wBZkmqMC1ZKA0juoYD+mFqPrHO0CNpVDHGRxZMSCIhg5ZpPYLtd8ptz7CCh1lQyZL+gy WQR6dHLSDArAMrBYxRQ7tMJLEQH3q+tvKqxSj8Z3C6qCp6yfkuOmCWw9vw3SRdBg3fsU CB0gx6pxoGqWlYGviSg6utBC3JCEYIlWMt5IxJmL73w/ovT13U1LnF3BggLZ8x2jI/VR ZT0nis4xcXsPfytNX5x2p1G0XuqHpyZsLzBLsYizJuzmukSqiy1mqvLDT8/OZ3BE8T3M ryfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-transfer-encoding; bh=L6IxGARY2MDo0uEIXWFZI5a0XX5iKKpw7e4cuxKpfNY=; b=C7aECsOlwD69EskczwK4CB41plHNVonlAS8PpdreKlYHW+KiudeQJ+57A06Vok++UN hyCa5IPxKZiIg+1ng0P0DdSNQGnZA0/XnM4awEjbXowKeF++jvMcMFhZHlUcF/DBpw8f /9BwjjQPRU4C0fs0InQPGcZq+Np1pAS+rTR+WE1qPUeAxoFTNUONuI/2gp/w1F9fw/vk fTL8dx8gl176CeSvO1jxfNRp8Y3tfYioz0IM2tyDiDQLRUhHFmxDoFJ88j455rDYOc9m GRPj7uJEHvWm+fYGZbCmZItQFvf0glpcWRZhDBpANDF5aGBwM8Yz0d33mKOdTOtF7nSm 9R8A== X-Gm-Message-State: AD7BkJLNWByaQcNPztjYU+RolCP3jKEqIfRxXa71mtR0WQL8+bBm7yv7QzHIp4z1gY2p6P3QVnwtRnfdzDz0xw== MIME-Version: 1.0 X-Received: by 10.194.90.137 with SMTP id bw9mr24319124wjb.120.1457377153170; Mon, 07 Mar 2016 10:59:13 -0800 (PST) In-Reply-To: References: Date: Mon, 7 Mar 2016 09:59:13 -0900 Message-ID: Subject: Re: [geda-user] anyone know how to get rid of these warnings From: "Britton Kerin (britton DOT kerin AT gmail DOT com) [via geda-user AT delorie DOT com]" To: geda-user AT delorie DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u27IxIWp009683 Reply-To: geda-user AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-user AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Mon, Mar 7, 2016 at 12:44 AM, Peter Clifton (petercjclifton AT googlemail DOT com) [via geda-user AT delorie DOT com] wrote: > > On 7 Mar 2016 03:14, "Britton Kerin (britton DOT kerin AT gmail DOT com) [via > geda-user AT delorie DOT com]" wrote: >> >> This stuff is about the last I'm aware of then could build with >> -Werror and not have to watch for useful warnings. -Wunused-value is >> sometimes useful so I don't like to just turn it off. I have no idea >> about how gettext works though. > > Just a guess, are you building with NLS disabled? I think that turns some > things into a no-op. Yes. I do that because without it -O0 builds fail for NLS-related reasons: gcc -std=gnu99 -DLOCALEDIR=\"/tmp/junk/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I.. -I./hid/gtk -I/usr/include -I/home/bkerin/local/include/dbus-1.0 -I/home/bkerin/local/lib/dbus-1.0/include -I/home/bkerin/local/include/glib-2.0 -I/home/bkerin/local/lib/glib-2.0/include -pthread -I/home/bkerin/local/include/gtk-2.0 -I/home/bkerin/local/lib/gtk-2.0/include -I/home/bkerin/local/include/atk-1.0 -I/home/bkerin/local/include/cairo -I/home/bkerin/local/include/gdk-pixbuf-2.0 -I/home/bkerin/local/include/pango-1.0 -I/home/bkerin/local/include/glib-2.0 -I/home/bkerin/local/lib/glib-2.0/include -I/home/bkerin/local/include/pixman-1 -I/home/bkerin/local/include -I/home/bkerin/local/include/freetype2 -I/home/bkerin/local/include/harfbuzz -I/usr/include/libpng12 -I/usr/include -pthread -I/home/bkerin/local/include/gtk-2.0 -I/home/bkerin/local/lib/gtk-2.0/include -I/home/bkerin/local/include/pango-1.0 -I/home/bkerin/local/include/gdk-pixbuf-2.0 -I/home/bkerin/local/include/glib-2.0 -I/home/bkerin/local/lib/glib-2.0/include -I/home/bkerin/local/include/cairo -I/home/bkerin/local/include/pixman-1 -I/home/bkerin/local/include -I/home/bkerin/local/include/freetype2 -I/home/bkerin/local/include/atk-1.0 -I/home/bkerin/local/include/harfbuzz -I/usr/include/gtkglext-1.0 -I/usr/lib/gtkglext-1.0/include -I/usr/include/libpng12 -pthread -pthread -DPREFIXDIR=\"/tmp/junk\" -DBINDIR=\"/tmp/junk/bin\" -DHOST=\"i686-pc-linux-gnu\" -DPCBLIBDIR=\"/tmp/junk/share/pcb\" -DPCBTREEDIR=\"/tmp/junk/share/pcb/newlib\" -DPCBTREEPATH=\"/tmp/junk/share/pcb/newlib:/tmp/junk/share/pcb/pcblib-newlib\" -Wall -g -O0 -Wno-declaration-after-statement -MT hid/gtk/libgtk_a-gui-config.o -MD -MP -MF hid/gtk/.deps/libgtk_a-gui-config.Tpo -c -o hid/gtk/libgtk_a-gui-config.o `test -f 'hid/gtk/gui-config.c' || echo './'`hid/gtk/gui-config.c In file included from ./global.h:84:0, from hid/gtk/gui.h:28, from hid/gtk/gui-config.c:35: hid/gtk/gui-config.c: In function ‘config_layers_tab_create’: ./gettext.h:126:67: error: ‘LC_MESSAGES’ undeclared (first use in this function) pgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES) ^ ./global.h:91:19: note: in expansion of macro ‘pgettext’ # define C_(C, S) pgettext(C, S) ^ hid/gtk/gui-config.c:1753:36: note: in expansion of macro ‘C_’ vbox = ghid_notebook_page (tabs, C_("tab", "Info"), 0, 6); ^ ./gettext.h:126:67: note: each undeclared identifier is reported only once for each function it appears in pgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES) ^ ./global.h:91:19: note: in expansion of macro ‘pgettext’ # define C_(C, S) pgettext(C, S) ^ hid/gtk/gui-config.c:1753:36: note: in expansion of macro ‘C_’ vbox = ghid_notebook_page (tabs, C_("tab", "Info"), 0, 6); ^ make[2]: *** [hid/gtk/libgtk_a-gui-config.o] Error 1 > Building with -Werror may be fun for developers, but we can't ship like that > (or probably even default to it in the repository)... Agreed, but it's quite useful and since we're only a warning or two away from clean enough to use it the policy should be to try to maintain it working. If it gets broken in some trivial way its worth quickly merging the fix. > There are too many different compilers with different warnings, and they > change over time with what code patterns may give rise to a warning. I'd still like to meet some of these non-gcc using pcb users. Britton