Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails on CentOS 6 with CFLAGS=-O2 #68

Open
scop opened this issue Jan 26, 2016 · 0 comments
Open

Build fails on CentOS 6 with CFLAGS=-O2 #68

scop opened this issue Jan 26, 2016 · 0 comments

Comments

@scop
Copy link
Contributor

scop commented Jan 26, 2016

Build fails on CentOS 6 (at least x86_64) with CFLAGS=-O2 (gcc-4.4.7, glibc-2.12):

$ CFLAGS="-O2" make
cc -O2 -Wall -Werror -D_GNU_SOURCE -g   -c -o attach.o attach.c
cc1: warnings being treated as errors
attach.c: In function ‘steal_child_pty’:
attach.c:443: error: dereferencing pointer ‘cm’ does break strict-aliasing rules
attach.c:447: error: dereferencing pointer ‘cm’ does break strict-aliasing rules
attach.c:445: error: dereferencing pointer ‘cm’ does break strict-aliasing rules
attach.c:444: error: dereferencing pointer ‘cm’ does break strict-aliasing rules
attach.c:442: note: initialized from here
make: *** [attach.o] Error 1
nelhage added a commit that referenced this issue Jan 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant