X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8995C3858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1674315362; bh=u4h8nnD6jo7aaPy7RYfsbBVLlvmNLOiup2uuxoVlCbU=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=kBWXxAl1Kioj7jqLIl/ciSXpxFVXg2GR5CGCT8ugrn7eG4g9fXl5vM5UKkGDBgy7N XaW2xyPiCrxlLdjUYfNDxgcCZsC9Rue8oZhGpOsd1nd7izh+mJojQueh6guA69ZF3q KVudazroUYx84b4VpjMn7UKo3bGZgv9aR2+MKdSQ= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3D1553858D20 Message-ID: Date: Sat, 21 Jan 2023 16:35:23 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: compiling issue To: cygwin AT cygwin DOT com References: <034c01d92d57$fc35f6e0$f4a1e4a0$@icloud.com> In-Reply-To: <034c01d92d57$fc35f6e0$f4a1e4a0$@icloud.com> X-Provags-ID: V03:K1:WOAyVeUQ7Xe+cu8wAz0asLzYlQKrUcPj5WXBRGcwduBMDiEbZoN yczi9mSS5SnRgsMo+Pz5weXdVqi8UeQNeqrv7cTmPd3yAVpaJrQd1W1Zdq6QF2JN2V/XgR0 awIfAOUqbChxhcWnaTgJZdToi9/vbYz/zewGorgqzhs6c/GqpnJX/kJFOzKcXMCUJHlT5/D kVMJTN6ocnr2D24Ol1RZg== UI-OutboundReport: notjunk:1;M01:P0:QOcmbup3Ox0=;YD2wIbui8RAluCmu6VRrR5mUI+e rxP9XWQdVd3QIYQE9YoowTp2q0mjFh8qVG20e4VGgTallgjcn28aZwI0Vg8jGfTl54MqFwDqO h/NLjXJgEr5BML0FhUo9mwJz9y8B3Urc2vEgbg8bzivVV5wTmHrEboVCoSVv0wNvgLdli3bT0 KNeC+7UoWpJiWdOXhpPjaPA7dvpsJdcrOoPUDrUd5UENNZlhrdwLFObhoCOkwBfsLgYyyUFDE qgbn+jn0jijxZnfyHgu99ZkgrqHAamocnEzqlYOxUQt2nVFtDeP9V5r61/UvSopurstbzgb4Y mcEcgUJhJ9DPwdDzxtrXkQdTsAJgjGQ/nEpwNtlIFfBPlSPCAtN1dqedbrskjX5i1WV6l4bGJ EPrCJ3IeZpdk/MzXpsMn9xlm+xLSAiKqMnZG42ojvhfB5kLVyJ+/j/O6CcxfiLhbCKGBmgVU8 5jPKqjkoUB6f43jaG8QrtQAz1azpSmR3erW+F70be60AQn/INyllgYNpbGFYi9UOQf7bEkOmM bjc7WMDhnycYcd58MnSlZ0l6ejRSgpgPt5AIt7cdwt/H8xydh5GwJP2EkYhCe2tgeYpBiZTdC inzi15B4z5kKn447bJwn3mRm7Z3x105zrnrXyHHO1i4UHfcpT5/IdW+l5VYjb8VT6+GbEFGDA mrd+1rExiXLbqCjcjfVkAmXm8UQi+due+hBOwtmz0A== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org 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: Thomas Wolff via Cygwin Reply-To: Thomas Wolff Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "Cygwin" Am 21.01.2023 um 06:19 schrieb Nathan via 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: Leaving out result types isn't legal C nowadays. You could compile with gcc -std=c90 > 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