Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919393 - dev-libs/m17n-lib-1.8.0 - [clang] medit.c: error: parameter idx was not declared, defaults to int; ISO
Summary: dev-libs/m17n-lib-1.8.0 - [clang] medit.c: error: parameter idx was not decla...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: CJK Team
URL:
Whiteboard: fixed in 1.8.0-r1
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-12-07 08:35 UTC by Toralf Förster
Modified: 2024-10-31 20:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.89 KB, text/plain)
2023-12-07 08:35 UTC, Toralf Förster
Details
dev-libs:m17n-lib-1.8.0:20231207-061055.log (dev-libs:m17n-lib-1.8.0:20231207-061055.log,113.52 KB, text/plain)
2023-12-07 08:35 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,30.78 KB, text/plain)
2023-12-07 08:35 UTC, Toralf Förster
Details
environment (environment,84.06 KB, text/plain)
2023-12-07 08:35 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.13 KB, application/x-xz)
2023-12-07 08:36 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,20.55 KB, application/x-xz)
2023-12-07 08:36 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,13.94 KB, application/x-xz)
2023-12-07 08:36 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,66.54 KB, text/plain)
2023-12-07 08:36 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,49.94 KB, application/x-xz)
2023-12-07 08:36 UTC, Toralf Förster
Details
var.tmp.clang.tar.xz (var.tmp.clang.tar.xz,1.94 KB, application/x-xz)
2023-12-07 08:36 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-12-07 08:35:54 UTC
  445 |           size = (int) mface_get_prop (faces[i], Msize);
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
medit.c:447:12: warning: cast to smaller integer type 'int' from 'void *'
      [-Wvoid-pointer-to-int-cast]
  447 |           ratio = (int) mface_get_prop (faces[i], Mratio);
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
medit.c:665:22: error: parameter 'idx' was not declared, defaults to 'int'; ISO
      C99 and later do not support implicit int [-Wimplicit-int]
  665 | select_input_method (idx)

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd_clang_merged_usr-20231206-115013

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6+libcxx
Python 3.11.7
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.73.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
*)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-21 

php cli (if any):
go version go1.21.4 linux/amd64

  HEAD of ::gentoo
commit 9e61dadb91e11f7d0042195e1618cb255ab4a2be
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Dec 7 05:31:57 2023 +0000

    2023-12-07 05:31:56 UTC

emerge -qpvO dev-libs/m17n-lib
[ebuild  N    ] dev-libs/m17n-lib-1.8.0  USE="X anthy athena bidi fontconfig gd libxml2 -libotf -spell -xft"
Comment 1 Toralf Förster gentoo-dev 2023-12-07 08:35:55 UTC
Created attachment 878034 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-07 08:35:57 UTC
Created attachment 878035 [details]
dev-libs:m17n-lib-1.8.0:20231207-061055.log
Comment 3 Toralf Förster gentoo-dev 2023-12-07 08:35:58 UTC
Created attachment 878036 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2023-12-07 08:35:59 UTC
Created attachment 878037 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-12-07 08:36:00 UTC
Created attachment 878038 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-07 08:36:00 UTC
Created attachment 878039 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-12-07 08:36:01 UTC
Created attachment 878040 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2023-12-07 08:36:03 UTC
Created attachment 878041 [details]
qlist-info.txt
Comment 9 Toralf Förster gentoo-dev 2023-12-07 08:36:04 UTC
Created attachment 878042 [details]
temp.tar.xz
Comment 10 Toralf Förster gentoo-dev 2023-12-07 08:36:05 UTC
Created attachment 878043 [details]
var.tmp.clang.tar.xz
Comment 11 Larry the Git Cow gentoo-dev 2024-06-27 13:15:48 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26df43b5026e054e11e9c0b2e73ef9304db4d32a

commit 26df43b5026e054e11e9c0b2e73ef9304db4d32a
Author:     Akinori Hattori <hattya@gentoo.org>
AuthorDate: 2024-06-27 13:14:03 +0000
Commit:     Akinori Hattori <hattya@gentoo.org>
CommitDate: 2024-06-27 13:14:03 +0000

    dev-libs/m17n-lib: fix build with Clang
    
    Closes: https://bugs.gentoo.org/919393
    Signed-off-by: Akinori Hattori <hattya@gentoo.org>

 dev-libs/m17n-lib/files/m17n-lib-clang.patch | 21 +++++++++++++++++++++
 dev-libs/m17n-lib/m17n-lib-1.8.0-r1.ebuild   |  1 +
 2 files changed, 22 insertions(+)