If anyone's interested, here are the warnings I'm currently compiling
under. Of course, they generate warnings that we're not clean on, but
I'm working on quieting them.
xoxo,
Andy
#!/bin/sh +x
WARNINGS=""
WARNINGS="$WARNINGS -Waggregate-return"
WARNINGS="$WARNINGS -Wbad-function-cast"
WARNINGS="$WARNINGS -Wcast-align"
WARNINGS="$WARNINGS -Wcast-qual"
WARNINGS="$WARNINGS -Wcomment"
WARNINGS="$WARNINGS -Wformat"
WARNINGS="$WARNINGS -Wimplicit"
WARNINGS="$WARNINGS -Winline"
WARNINGS="$WARNINGS -Wmissing-braces"
WARNINGS="$WARNINGS -Wpacked"
WARNINGS="$WARNINGS -Wparentheses"
WARNINGS="$WARNINGS -Wpointer-arith"
WARNINGS="$WARNINGS -Wreturn-type"
WARNINGS="$WARNINGS -Wsequence-point"
WARNINGS="$WARNINGS -Wshadow"
WARNINGS="$WARNINGS -Wstrict-aliasing"
WARNINGS="$WARNINGS -Wstrict-aliasing=2"
WARNINGS="$WARNINGS -Wswitch-default"
WARNINGS="$WARNINGS -Wundef"
# This is how Parrot compiles, and I'm picking from here.
# gcc -I./include -g -pipe -fno-common -no-cpp-precomp
# -Wdeclaration-after-statement -I/usr/local/include -pipe -fno-common
# -Wno-long-double -DHASATTRIBUTE_CONST -DHASATTRIBUTE_DEPRECATED
# -DHASATTRIBUTE_MALLOC -DHASATTRIBUTE_NONNULL -DHASATTRIBUTE_NORETURN
# -DHASATTRIBUTE_PURE -DHASATTRIBUTE_UNUSED -
DHASATTRIBUTE_WARN_UNUSED_RESULT
# -falign-functions=16 -fvisibility=hidden -maccumulate-outgoing-args
# -W -Wall -Waggregate-return -Wcast-align -Wcast-qual -Wchar-subscripts
# -Wcomment -Wdisabled-optimization -Wendif-labels -Wextra -Wformat
# -Wformat-extra-args -Wformat-nonliteral -Wformat-security -Wformat-y2k
# -Wimplicit -Wimport -Winit-self -Winline -Winvalid-pch -Wmissing-
braces
# -Wmissing-field-initializers -Wno-missing-format-attribute
# -Wmissing-include-dirs -Wpacked -Wparentheses -Wpointer-arith
# -Wreturn-type -Wsequence-point -Wno-shadow -Wsign-compare
# -Wstrict-aliasing -Wstrict-aliasing=2 -Wswitch -Wswitch-default
# -Wtrigraphs -Wundef -Wunknown-pragmas -Wno-unused -Wvariadic-macros
# -Wwrite-strings -Wlarger-than-4096 -Wbad-function-cast
# -Wdeclaration-after-statement -Wimplicit-function-declaration
# -Wimplicit-int -Wmain -Wmissing-declarations -Wmissing-prototypes
# -Wnested-externs -Wnonnull -I/opt/local/include -DHAS_GETTEXT -g
# -Wno-shadow -DHAS_JIT -DI386 -I. -o xx.o -c xx.c
CFLAGS="-I/opt/local/include $WARNINGS"
CPPFLAGS='-I/opt/local/include'
LDFLAGS='-L/opt/local/lib'
CC=`which gcc`
CXX=`which g++`
CCACHE=`which ccache`
CC="$CCACHE $CC"
CXX="$CCACHE $CXX"
export CFLAGS CPPFLAGS LDFLAGS CC CXX
echo "CFLAGS=$CFLAGS"
./config/autorun.sh && \
./configure \
--disable-fail \
--
Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance
_______________________________________________
Mailing list: https://launchpad.net/~drizzle-discuss
Post to : [email protected]
Unsubscribe : https://launchpad.net/~drizzle-discuss
More help : https://help.launchpad.net/ListHelp