Comments (7)
When i compile, i don't get this warning, can you tell me your gcc version?
Anyway this is only a warning, so uwufetch should work without problems.
from uwufetch.
The last commit removes some of the fscanf()
, could you check if it now compiles without warnings?
from uwufetch.
I am getting the similar warnings and after installing from source
errorfile.txt
I'm on pop_os using gcc version: 10.2.0 (Ubuntu 10.2.0-13ubuntu1)
from uwufetch.
I am getting the similar warnings and after installing from source errorfile.txt
I'll try to completely rewrite the pkgman() function without fscanf()
I'm on pop_os using gcc version: 10.2.0 (Ubuntu 10.2.0-13ubuntu1)
The gcc version might be the problem, with gcc 11.1.0 i get no warnings.
from uwufetch.
I'm with gcc 10.2.0 and get no warnings.
Arch Linux.
gcc -vt.txt
from uwufetch.
With some googling, I found that this warning exists because ignoring error handling for fscanf could lead to serious errors, so adding some error handling should fix it. Let me know if the error is still here.
from uwufetch.
Seems like you got most of them I'm just getting one warning now
after running make build:
gcc -O3 -o uwufetch uwufetch.c
uwufetch.c: In function ‘get_info’:
uwufetch.c:173:4: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
173 | fscanf(whoami, "%s", user);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
and sudo make install gives no warnings/ errors
cp uwufetch /usr/bin/uwufetch
ls /usr/lib/uwufetch/ 2> /dev/null || mkdir /usr/lib/uwufetch/
cp res/* /usr/lib/uwufetch/
from uwufetch.
Related Issues (20)
- no arm/android support HOT 1
- More UwU in Hardware / Manufactuwu HOT 1
- [BUG]
- [BUG] CPU Model is seen as kilobytes HOT 7
- [BUG] Some information was wrong HOT 6
- [BUG] Buffer overflow on NixOS HOT 3
- [FEATURE-REQUEST Fastuwufetch when? HOT 4
- [BUG] buffer overflow due to $SHELL
- [BUG] Doesn't show GPUWU without root perms HOT 5
- Syntax error and Exec format error when ran HOT 4
- [OS-REQUEST] Red Hat Enterprise Linux HOT 2
- [BUG] UWUFETCH_VERSION string not set in Github generated archives HOT 4
- [FEATURE-REQUEST] Call package manager from PATH instead of hard-coding paths HOT 1
- [BUG] Arbitrary code execution via code injection HOT 1
- uwufetch doesn't show the image in kitty terminal and how can i use icat in wuwfetch instead HOT 3
- [BUG] Uwufetch does not move the cursor to the end of the output in the tty. HOT 1
- [BUG] Installing uwufetch on FreeBSD breaks system package manager HOT 8
- [BUG]Doesnt work on iOS HOT 1
- [BUG] uwufetch doesn't show right resolution HOT 1
- Archiving this project
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 uwufetch.