From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mr85p00im-hyfv06021301.me.com (mr85p00im-hyfv06021301.me.com [17.58.23.188]) by sourceware.org (Postfix) with ESMTPS id 5163D3858D33 for ; Sat, 21 Jan 2023 05:19:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5163D3858D33 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=icloud.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=icloud.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1674278393; bh=A8Tbc7FkMnBXafWWbsnmLzIg/ndBpKxCOdH3f0k2PNI=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=BnGEO8pzzTNyfI3N5vgBjzS6+Lhc2+raaZTKUGr8+T6gBeV21ep0u5j8SpyjvTag7 MPari8OOsbeZWveeRTOOMjtsrOJTg7AkslswmF3Jwxb6L94ihEwjhJthQ0qGNakkR2 ZDbJbfdzNostixcK4UIPWVR++BZ2jn23+LygD+SfOX0nIvZYV/h2O3i5DV9ChGp3aH fj8jamryBlxPB9xn3t6KKLbHLhYxDpIbxbiJO0TW0JJ/oc0TvVyPpGT52Ni6zk2hxL MJx0ywo5L0Y4XkkULHZIg/qtq/35Of2aClwGMV3YYhJqqsbJHo8RxBfb/VrgZRTOFV UH3OrM8B3ONWA== Received: from FUCKRUSSIA (mr38p00im-dlb-asmtp-mailmevip.me.com [17.57.152.18]) by mr85p00im-hyfv06021301.me.com (Postfix) with ESMTPSA id 471D721516E8 for ; Sat, 21 Jan 2023 05:19:53 +0000 (UTC) From: To: Subject: compiling issue Date: Fri, 20 Jan 2023 21:19:49 -0800 Message-ID: <034c01d92d57$fc35f6e0$f4a1e4a0$@icloud.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_034D_01D92D14.EE161240" X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdktVsbdEnXbsOdsT3iKCoLJ4FUqtQ== Content-Language: en-us X-Proofpoint-ORIG-GUID: 758dMp_VpR60_rVfaOo_NqevY1oMyjpu X-Proofpoint-GUID: 758dMp_VpR60_rVfaOo_NqevY1oMyjpu X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.425,18.0.816,17.0.605.474.0000000_definitions?= =?UTF-8?Q?=3D2022-01-18=5F01:2022-01-14=5F01,2022-01-18=5F01,2020-01-23?= =?UTF-8?Q?=5F02_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 bulkscore=0 clxscore=1011 malwarescore=0 spamscore=0 adultscore=0 mlxscore=0 mlxlogscore=631 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2301210050 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,HTML_OBFUSCATE_05_10,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: This is a multipart message in MIME format. ------=_NextPart_000_034D_01D92D14.EE161240 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit The file here for a game I wanted to use is http://www.ifarchive.org/if-archive/games/source/Adventure2.5.tar.gz and it all compiled but one file getting the error is init.c as follows: gcc -O -c init.c init.c:167:1: warning: return type defaults to 'int' [-Wimplicit-int] 167 | initialise() { | ^~~~~~~~~~ init.c: In function 'initialise': init.c:169:13: warning: implicit declaration of function 'quick_init' [-Wimplicit-function-declaration] 169 | if(!quick_init()){raw_init(); report(); quick_save();} | ^~~~~~~~~~ init.c:169:27: warning: implicit declaration of function 'raw_init' [-Wimplicit-function-declaration] 169 | if(!quick_init()){raw_init(); report(); quick_save();} | ^~~~~~~~ init.c:169:39: warning: implicit declaration of function 'report' [-Wimplicit-function-declaration] 169 | if(!quick_init()){raw_init(); report(); quick_save();} | ^~~~~~ init.c:169:49: warning: implicit declaration of function 'quick_save' [-Wimplicit-function-declaration] 169 | if(!quick_init()){raw_init(); report(); quick_save();} | ^~~~~~~~~~ init.c:170:9: warning: implicit declaration of function 'finish_init' [-Wimplicit-function-declaration] 170 | finish_init(); | ^~~~~~~~~~~ init.c: At top level: init.c:173:8: warning: return type defaults to 'int' [-Wimplicit-int] 173 | static raw_init() { | ^~~~~~~~ init.c:173:8: error: static declaration of 'raw_init' follows non-static declaration init.c:169:27: note: previous implicit declaration of 'raw_init' with type 'int()' 169 | if(!quick_init()){raw_init(); report(); quick_save();} | ^~~~~~~~ init.c:369:8: warning: return type defaults to 'int' [-Wimplicit-int] 369 | static finish_init() { | ^~~~~~~~~~~ init.c:369:8: error: static declaration of 'finish_init' follows non-static declaration init.c:170:9: note: previous implicit declaration of 'finish_init' with type 'int()' 170 | finish_init(); | ^~~~~~~~~~~ init.c:593:8: warning: return type defaults to 'int' [-Wimplicit-int] 593 | static report() { | ^~~~~~ init.c:593:8: error: static declaration of 'report' follows non-static declaration init.c:169:39: note: previous implicit declaration of 'report' with type 'int()' 169 | if(!quick_init()){raw_init(); report(); quick_save();} | ^~~~~~ init.c:635:8: warning: return type defaults to 'int' [-Wimplicit-int] 635 | static quick_init() { | ^~~~~~~~~~ init.c:635:8: error: static declaration of 'quick_init' follows non-static declaration init.c:169:13: note: previous implicit declaration of 'quick_init' with type 'int()' 169 | if(!quick_init()){raw_init(); report(); quick_save();} | ^~~~~~~~~~ init.c: In function 'quick_init': init.c:648:9: warning: implicit declaration of function 'quick_io'; did you mean 'quick_init'? [-Wimplicit-function-declaration] 648 | quick_io(); | ^~~~~~~~ | quick_init init.c: At top level: init.c:655:8: warning: return type defaults to 'int' [-Wimplicit-int] 655 | static quick_save() { | ^~~~~~~~~~ init.c:655:8: error: static declaration of 'quick_save' follows non-static declaration init.c:169:49: note: previous implicit declaration of 'quick_save' with type 'int()' 169 | if(!quick_init()){raw_init(); report(); quick_save();} | ^~~~~~~~~~ init.c:667:8: warning: return type defaults to 'int' [-Wimplicit-int] 667 | static quick_io() { | ^~~~~~~~ init.c:667:8: error: static declaration of 'quick_io' follows non-static declaration init.c:648:9: note: previous implicit declaration of 'quick_io' with type 'int()' 648 | quick_io(); | ^~~~~~~~ make: *** [Makefile:8: init.o] Error 1 so any tips or suggestions to fix this would be appreciated. Thank you. ------=_NextPart_000_034D_01D92D14.EE161240--