X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E47F33858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1674278431; bh=5Q2Ki7y5QRgqgCOzXe4VzjWN2+XOYbCizJVh5Py3Eb4=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=SmdJ2AxrIE0OSZs5qxgV1MggaqWMqr2n013BTkpre+L+ynttsq/BJFMvTg0AQuWxF 1NgfhpAoIePV+mlct4T266CLjMjaBtx3U7ipLUoyRzJvO8LTtKqWYzQymGHiQGrqHE 0c4NDDA0/eE6C5w1Bq44Qi9Hk8JFVNgdcCmEV8g0= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5163D3858D33 To: Subject: compiling issue Date: Fri, 20 Jan 2023 21:19:49 -0800 Message-ID: <034c01d92d57$fc35f6e0$f4a1e4a0$@icloud.com> MIME-Version: 1.0 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 X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Nathan via Cygwin Reply-To: internetking425 AT icloud DOT com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" 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. -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple