Comments (4)
I was able to test this again.
Treating the warning as a warning will allow it to build.
CFLAGS="-Wno-deprecated-non-protoype" make
from zelda3.
Just tried and it seems to work just fine, zelda3
is build and running as expected.
Thank you
from zelda3.
What is your compiler?
What does cc --version
show?
Builds with apple-clang-13, gcc-11, clang-14 using SDL 2.26.5
tested on MacOS Monterey
set your CFLAGS to specify c11
CFLAGS="-std=c11 -O2 -Werror" make
from zelda3.
Thank you for helping qurious-pixel, here are the outputs of the commands below.
As you can see, I am on clang 14.0.3
, maybe that has to do with the bug.
cc --version
Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: arm64-apple-darwin22.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
CFLAGS="-std=c11 -O2 -Werror" make
cc -c -std=c11 -O2 -Werror -I/opt/homebrew/include/SDL2 -D_THREAD_SAFE -DSYSTEM_VOLUME_MIXER_AVAILABLE=0 ancilla.c -o ancilla.o
cc -c -std=c11 -O2 -Werror -I/opt/homebrew/include/SDL2 -D_THREAD_SAFE -DSYSTEM_VOLUME_MIXER_AVAILABLE=0 attract.c -o attract.o
cc -c -std=c11 -O2 -Werror -I/opt/homebrew/include/SDL2 -D_THREAD_SAFE -DSYSTEM_VOLUME_MIXER_AVAILABLE=0 audio.c -o audio.o
cc -c -std=c11 -O2 -Werror -I/opt/homebrew/include/SDL2 -D_THREAD_SAFE -DSYSTEM_VOLUME_MIXER_AVAILABLE=0 config.c -o config.o
cc -c -std=c11 -O2 -Werror -I/opt/homebrew/include/SDL2 -D_THREAD_SAFE -DSYSTEM_VOLUME_MIXER_AVAILABLE=0 dungeon.c -o dungeon.o
cc -c -std=c11 -O2 -Werror -I/opt/homebrew/include/SDL2 -D_THREAD_SAFE -DSYSTEM_VOLUME_MIXER_AVAILABLE=0 ending.c -o ending.o
cc -c -std=c11 -O2 -Werror -I/opt/homebrew/include/SDL2 -D_THREAD_SAFE -DSYSTEM_VOLUME_MIXER_AVAILABLE=0 glsl_shader.c -o glsl_shader.o
cc -c -std=c11 -O2 -Werror -I/opt/homebrew/include/SDL2 -D_THREAD_SAFE -DSYSTEM_VOLUME_MIXER_AVAILABLE=0 hud.c -o hud.o
cc -c -std=c11 -O2 -Werror -I/opt/homebrew/include/SDL2 -D_THREAD_SAFE -DSYSTEM_VOLUME_MIXER_AVAILABLE=0 load_gfx.c -o load_gfx.o
cc -c -std=c11 -O2 -Werror -I/opt/homebrew/include/SDL2 -D_THREAD_SAFE -DSYSTEM_VOLUME_MIXER_AVAILABLE=0 main.c -o main.o
cc -c -std=c11 -O2 -Werror -I/opt/homebrew/include/SDL2 -D_THREAD_SAFE -DSYSTEM_VOLUME_MIXER_AVAILABLE=0 messaging.c -o messaging.o
messaging.c:2394:21: error: passing arguments to 'VWF_RenderSingle' without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
VWF_RenderSingle(TEXTCMD_PARAM(cmd));
^
In file included from messaging.c:1:
./messaging.h:110:6: error: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
void VWF_RenderSingle();
^
void
messaging.c:2512:6: error: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
void VWF_RenderSingle(int c) { // 8ecab8
^
3 errors generated.
make: *** [messaging.o] Error 1
from zelda3.
Related Issues (20)
- other/msu/encode_opus.py error
- Fails to build on Raspbian GNU/Linux 10 (buster) HOT 2
- Ram mismatch when pressing select while in inventory menu HOT 1
- Compile errors on macOS 13.4 HOT 2
- Feature Request: The ability to bindkeys for "Reset" and "Exit"
- Set level of sword that can break pots
- Switch Port Building HOT 1
- My feature requests HOT 1
- MSU sound crackling/popping at the very begninning after save slot is created
- build errors on macOS Ventura (13.5.1) HOT 6
- Compile error: too many arguments to function 'VWF_RenderSingle' HOT 2
- Wiki pages corrections HOT 1
- Docker Build Instructions
- App bundle for macOS HOT 1
- Add Accessibility for Vision-Impaired Persons
- Multi-Language Support for menu and items still in English
- Issues compiling on M2 Mac HOT 2
- GroovyMISTER output path
- Italian Support
- Constatly getting "Could not find a part of the path" Errors when building HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zelda3.