From: Vitaly Chikunov <vt@altlinux.org> To: ALT Linux Team development discussions <devel@lists.altlinux.org> Subject: Re: [devel] Обновление protobuf Date: Wed, 26 Feb 2025 11:15:58 +0300 Message-ID: <20250226081558.hcinwagui2yhcz7k@altlinux.org> (raw) In-Reply-To: <20250226093347.694c6f44@legato> On Wed, Feb 26, 2025 at 09:33:47AM +0300, Paul Wolneykien wrote: > В Sat, 22 Feb 2025 23:40:50 +0300 > Vitaly Chikunov <vt@altlinux.org> пишет: > > > > Там ситуация следующая: есть enum и функция константа -> в строку > > > через switch: > > > > > > https://git.altlinux.org/people/manowar/packages/?p=grpc.git;a=blob;f=src/core/lib/transport/call_state.h;h=27d5b8517aca81cb893e03afa1d7f465f3bfc0f7;hb=a6364bdb126e0e5fd969bc66c58319c781b39501#l127 > > > > > > Так вот, если убрать один из кейсов, то будет ошибка вида > > > -Werror=switch, а если добавить "default", то пропадает ошибка > > > -Werror=return-type (control reaches end of non-void function). > > > Что имеет в виду компилятор? Что несмотря на перечисление всех > > > определённых для enum вариантов остаётся вероятность того, что > > > в функцию прилетит произвольное число и поэтому нужен default? > > > > https://gcc.gnu.org/wiki/VerboseDiagnostics#enum_switch > > Спасибо, стало гораздо понятнее. > > > > А как тогда собирают в апстриме? \(oo)/ > > А вот это всё ещё нет. (><) https://github.com/grpc/grpc/blob/master/bazel/copts.bzl > Что тут можно сделать кроме того, что > > а) запатчить исходники добавив "default:"; > б) включить -Wno-error=return-type (что я и сделал)? > _______________________________________________ > Devel mailing list > Devel@lists.altlinux.org > https://lists.altlinux.org/mailman/listinfo/devel
next prev parent reply other threads:[~2025-02-26 8:15 UTC|newest] Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top 2025-02-12 12:46 Paul Wolneykien 2025-02-12 13:33 ` Paul Wolneykien 2025-02-12 14:18 ` Paul Wolneykien 2025-02-12 14:44 ` Yuri Sedunov 2025-02-12 14:58 ` Sergey V Turchin 2025-02-12 16:08 ` Anton Farygin 2025-02-12 21:02 ` Paul Wolneykien 2025-02-13 4:19 ` Anton Farygin 2025-02-13 7:35 ` Paul Wolneykien 2025-02-13 7:45 ` Sergey V Turchin 2025-02-13 8:27 ` Paul Wolneykien 2025-02-13 8:34 ` Sergey V Turchin 2025-02-13 8:46 ` Ivan A. Melnikov 2025-02-13 23:36 ` Alexey V. Vissarionov 2025-02-14 6:11 ` Sergey V Turchin 2025-02-13 8:36 ` Ivan A. Melnikov 2025-02-14 8:42 ` Paul Wolneykien 2025-02-20 16:37 ` Paul Wolneykien 2025-02-21 9:43 ` Anton Farygin 2025-02-21 13:06 ` Constantin Sunzow 2025-02-21 20:56 ` Paul Wolneykien 2025-02-21 21:44 ` Vitaly Chikunov 2025-02-22 20:32 ` Paul Wolneykien 2025-02-22 20:40 ` Vitaly Chikunov 2025-02-26 6:33 ` Paul Wolneykien 2025-02-26 8:15 ` Vitaly Chikunov [this message] 2025-02-26 6:05 ` Paul Wolneykien 2025-02-26 10:24 ` Paul Wolneykien 2025-02-26 11:07 ` Ivan A. Melnikov 2025-02-27 15:28 ` Paul Wolneykien 2025-03-05 19:43 ` [devel] Обновление protobuf: прошу выдать апрувы Paul Wolneykien 2025-03-07 8:54 ` [devel] Обновление protobuf Paul Wolneykien 2025-03-07 11:23 ` Anton Farygin
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 * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20250226081558.hcinwagui2yhcz7k@altlinux.org \ --to=vt@altlinux.org \ --cc=devel@lists.altlinux.org \ /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
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git