ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] I: gcc 14.2.1 && binutils 2.43
Date: Wed, 6 Nov 2024 15:17:05 +0200
Message-ID: <ZytsUZ+3yg9njIa0@glebfm.altlinux.org> (raw)
In-Reply-To: <ozvdnx6bb5uz5mo45rs3p3dfcktgectcqqt24gkjhignul6abu@tazu3vhwknta>

[-- Attachment #1: Type: text/plain, Size: 1507 bytes --]

On Tue, Nov 05, 2024 at 07:31:24PM -0500, Andrey Bergman wrote:
> On Fri, Nov 01, 2024 at 03:18:22PM GMT, Gleb Fotengauer-Malinovskiy wrote:
> Приветствую!
> 
> > Основное и главное изменение это то, что warning-и:
> > -Wdeclaration-missing-parameter-type
> > -Wimplicit-function-declaration
> > -Wimplicit-int
> > -Wincompatible-pointer-types
> > -Wint-conversion
> > -Wreturn-mismatch
> > теперь включены по умолчанию как ошибки.
> 
> Что-то из этого можно исправить, но ряд проблем, особенно в
> configure скриптах использует -Wimplicit-function-declaration
> для того, чтобы проверить наличие функции хоть в каком-то виде
> в стандартной библиотеке С. К примеру, MoscowML проверяет
> ряд функций в Configure.
> 
> Тут можно зафиксировать стандарт C на C89. В нём разрешено использовать
> функции без объявлений.

Чтобы проверить наличие функции по возможности с ней линковаться, autoconf
генерирует примерно вот такой код и успешно избегает этого warning-а:

char foo (void);

int
main (void)
{
  return foo ();
  return 0;
}

-- 
glebfm

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

  reply	other threads:[~2024-11-06 13:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-01 13:18 Gleb Fotengauer-Malinovskiy
2024-11-06  0:31 ` Andrey Bergman
2024-11-06 13:17   ` Gleb Fotengauer-Malinovskiy [this message]
2024-11-06 16:18     ` Vladislav Zavjalov

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=ZytsUZ+3yg9njIa0@glebfm.altlinux.org \
    --to=glebfm@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