Re: [dev] st patch for draw() etc.

From: anonymous <p37sitdu_AT_lavabit.com>
Date: Wed, 27 Apr 2011 18:16:31 +0400

On Sat, Apr 23, 2011 at 03:48:46PM +0400, anonymous wrote:
> On Fri, Apr 22, 2011 at 12:31:37AM +0200, Aurélien Aptel wrote:
> > On Wed, Apr 20, 2011 at 5:46 PM, Magnus Leuthner
> > <magnus.leuthner_AT_googlemail.com> wrote:
> > > Please note that the drawing for the selection while selecting only works if
> > > the -Os option to GCC is omitted. I have not idea why but I would be very
> > > interested if someone would care to elaborate.
> >
> > It works here :/ Can anyone someone else try? (-Os is already the
> > default optimisation in the current makefile, just type make)
> >
> Works with -Os for me.
Now it don't work with -Os and work with -Os -fno-strict-aliasing.

% CFLAGS=-Wstrict-aliasing=2 make
st build options:
CFLAGS = -Wstrict-aliasing=2 -std=c99 -pedantic -Wall -Os -I.
-I/usr/include -I/usr/X11R6/include -DVERSION="0.1.1"
LDFLAGS = -s -L/usr/lib -lc -L/usr/X11R6/lib -lX11 -lutil
CC = cc
cp config.def.h config.h
CC st.c
st.c: In function 'selrequest':
st.c:503: warning: dereferencing type-punned pointer might break
strict-aliasing rules
CC -o st
Received on Wed Apr 27 2011 - 16:16:31 CEST

This archive was generated by hypermail 2.2.0 : Wed Apr 27 2011 - 16:24:03 CEST