Comments (3)
I can't replicate this. What version of GCC are you using? It compiles without warning for me using gcc-10
, gcc-11
, and gcc-13
.
$ uname -a
Linux cthulhu 5.15.0-52-generic #58-Ubuntu SMP Thu Oct 13 08:03:55 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
from ck.
Did you add -Werror=strict-aliasing
to your CFLAGS? I am using GCC-13.
Linux Galactica 6.0.7-gentoo #1 SMP PREEMPT_DYNAMIC Sun Nov 6 14:26:32 CET 2022 x86_64 GNU/Linux
from ck.
Apologies, I can replicate it.
It didn't throw an error when I tried compiling the single file.
gcc -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -std=gnu99 -pedantic -Wall -W -Wundef -Wendif-labels -Wshadow -Wpointer-arith -Wcast-align -Wcast-qual -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wdisabled-optimization -fstrict-aliasing -O2 -pipe -Wno-parentheses -O2 -pipe -march=x86-64 -frecord-gcc-switches -fno-diagnostics-color -fmessage-length=0 -flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fPIC -I../../../include -DCORES=48 -m64 -D__x86_64__ -D_GNU_SOURCE -o ck_pr_bin ck_pr_bin.c
But doing:
CFLAGS="-Wstrict-aliasing -Werror=strict-aliasing" ./configure && make regressions
does reproduce the same error for me.
Edit: If it's helpful it's also possible to get the warning but still compile the code with -Wstrict-aliasing=3
from ck.
Related Issues (20)
- ck_pr.h causes stringop-overread warning with GCC 11 HOT 1
- aff_iterate() fails on M1 macbooks
- custom configure script broken for cross-compilation HOT 2
- When is the next release of ConcurrencyKit? HOT 2
- How could we cross compile ck? HOT 5
- compilation: error: expected expression before 'struct' HOT 1
- Request: Add Support for Altering ABI Target When Building for riscv64 Platform HOT 1
- Missing man pages for newer fence types HOT 1
- MinGW64 (Git Bash) fails to parse ./configure generated directory names
- ck_ec test fails on 32-bit musl systems
- Can we get a stable 0.7.1 release? HOT 5
- When is the next stable release of ConcurrencyKit? HOT 2
- Makefile dependency errors
- Possible bug in ck_hp.c due to ck_hp_member_cache always returning NULL HOT 1
- patch to ck_sequence_write_begin & ck_sequence_write_end broke my code HOT 5
- Possible bug in `ck_rhs_t` on OOM. HOT 6
- site `http://concurrencykit.org/` is not accessible
- Question about ck_rhs_flush and memory ordering. HOT 2
- Inline assembly error: Instruction requires arm-mode HOT 4
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 ck.