Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 874987 - games-action/battalion-1.4b-r2 - battalion.c: error: return type defaults to int [-Werror=implicit-int]
Summary: games-action/battalion-1.4b-r2 - battalion.c: error: return type defaults to ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-10-04 16:29 UTC by Toralf Förster
Modified: 2022-11-21 01:36 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,19.00 KB, text/plain)
2022-10-04 16:29 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,192.51 KB, text/plain)
2022-10-04 16:29 UTC, Toralf Förster
Details
environment (environment,73.06 KB, text/plain)
2022-10-04 16:29 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,9.47 KB, application/x-bzip)
2022-10-04 16:29 UTC, Toralf Förster
Details
games-action:battalion-1.4b-r2:20221004-023540.log (games-action:battalion-1.4b-r2:20221004-023540.log,22.67 KB, text/plain)
2022-10-04 16:30 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,23.21 KB, application/x-bzip)
2022-10-04 16:30 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 2022-10-04 16:29:54 UTC
      |                                  ~^                             ~~~~~~~~~~~~
      |                                   |                             |
      |                                   char *                        char (*)[256]
battalion.c: At top level:
battalion.c:5472:1: error: return type defaults to int [-Werror=implicit-int]
 5472 | main (int argc, char*argv[])
      | ^~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome-j4-20221002-183753

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.3.1
 [2] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
/usr/lib/llvm/15
15.0.1
Python 3.10.7
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.64.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
3)	Eclipse Temurin JRE 17.0.4.1_p1 [openjdk-jre-bin-17]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-17 
  [3]   openjdk-jre-bin-17 

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
  [1]   php7.4
  [2]   php8.0
  [3]   php8.1 *
GNU Make 4.3

  HEAD of ::gentoo
commit c875f62ed1ed0e25b426a479262c6e0005f8ea39
Merge: bbc929b7b528 39828cfd43e9
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Oct 4 01:25:09 2022 +0000

    Merge updates from master

emerge -qpvO games-action/battalion
[ebuild  N    ] games-action/battalion-1.4b-r2
Comment 1 Toralf Förster gentoo-dev 2022-10-04 16:29:55 UTC
Created attachment 819121 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-04 16:29:57 UTC
Created attachment 819124 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-10-04 16:29:58 UTC
Created attachment 819127 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-10-04 16:29:59 UTC
Created attachment 819130 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-10-04 16:30:00 UTC
Created attachment 819133 [details]
games-action:battalion-1.4b-r2:20221004-023540.log
Comment 6 Toralf Förster gentoo-dev 2022-10-04 16:30:01 UTC
Created attachment 819136 [details]
temp.tar.bz2
Comment 7 Larry the Git Cow gentoo-dev 2022-11-21 01:36:07 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4385c470211466d5683ac9aa87ff44cbf54d33ba

commit 4385c470211466d5683ac9aa87ff44cbf54d33ba
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2022-11-21 01:15:51 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2022-11-21 01:35:48 +0000

    games-action/battalion: fix build w/ upcoming clang16
    
    Also add missing xorg-proto dep while here.
    
    Closes: https://bugs.gentoo.org/874987
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 games-action/battalion/battalion-1.4b-r2.ebuild           | 7 +++++--
 games-action/battalion/files/battalion-1.4b-clang16.patch | 8 ++++++++
 2 files changed, 13 insertions(+), 2 deletions(-)