Comments (2)
if you were interested in getting these silenced yourself
On a case-by-case basis yes, in general no.
The "potentially uninitialized local variable" warnings are probably false positives but it'd be good to check them anyway.
A lot of the other warnings however are bogus and I plan to encumber the code with things like pointless casts in order to pacify a compiler. To pick two examples from src/idna.c:
C:\Users\gocdu\programs\libuv\src\idna.c(80): warning C4245: 'return': conversion from 'int' to 'unsigned int', signed/unsigned mismatch
That's the perfectly legal and well-defined idiom of return -1
in a function that returns unsigned int
.
Now, you could change that to return ~0u
but that's definitely less robust. It quietly starts doing the wrong thing when the return type is changed to e.g. unsigned long
(because then it needs to be return ~0ul
)
C:\Users\gocdu\programs\libuv\src\idna.c(500): warning C4244: '=': conversion from 'int32_t' to 'char', possible loss of data
Libuv literally checks on the previous line that the value is in range but the compiler isn't smart enough to realize that.
from libuv.
Yes, I understand. Thank you for your time.
from libuv.
Related Issues (20)
- FreeBSD 13 builds are failing due to KINFO_FILE_SIZE undefined HOT 5
- uv_run hangs on macOS arm64/Rosetta in x86_64 docker container HOT 18
- Export "selected" CMake target for Libuv HOT 2
- io_uring support leads to crashes on ppcle64 machines. HOT 12
- Cannot make above v1.44.2
- windows: support launching executables with runas permissions HOT 2
- windows: misleading comments in tty.c
- macos: restoring signal disposition doesn't work as flags are not propagated HOT 7
- win: incorrect implementation of kill(0) / ESRCH
- Segment fault when run tty test HOT 4
- GPG keys of maintainers can't be retrieved from https://github.com/ nor https://libuv.org/
- GPG signatures of releases made with an expired key HOT 2
- potential perf regeressions due to io_uring `SQPOLL` HOT 3
- test: udp_multicast_join, udp_multicast_join6 failed under loongarch64 HOT 3
- Abstract socket namespace not work for 1.48 HOT 4
- several tests ha failed HOT 4
- unix udp close crash HOT 9
- linux,udp: don't use sendmmsg for single datagrams
- bug in libuv io_uring causes incorrect event reports to epoll and busy loop HOT 14
- `-Wstringop-overread` warning with libuv v1.48.0 (`unix/tcp.c:295`) with IBM AT17.0 (GCC 13.2.1) HOT 3
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 libuv.