Subject: Re: uninitialized vars
To: Jaka Jejcic <jj@gnorw.net>
From: Quentin Garnier <cube@cubidou.net>
List: current-users
Date: 10/18/2005 12:04:09
--r+TdwuXy+OXS8TUs
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Oct 18, 2005 at 11:58:14AM +0200, Jaka Jejcic wrote:
> On Tue, Oct 18, 2005 at 11:43:06AM +0200, Quentin Garnier wrote:
> > On Tue, Oct 18, 2005 at 11:38:28AM +0200, Jaka Jejcic wrote:
> > > Maybe you will all find this ridiculous but I find myself
> > > adding '=3D 0' or '=3D NULL' to many of the files and many of
> > > the variables each time I build the source tree just to
> > > get it compiled, because the build fails for uninitialized vars.
> > >=20
> > > Am I doing something wrong? If not, why aren't those vars set to
> > > some appropriate value?
> >=20
> > You'd better give a precise example.  And are you adding -W flags to
> > the build?
>=20
> example:
> ./build.sh -T /usr/build/alpha/tools -M /usr/build/alpha/obj -D /usr/buil=
d/alpha/dist -R /usr/build/alpha/release -m alpha release
>=20
> it doesn't matter which arch i build for
>=20
> mk.conf:
> COPTS +=3D	-pipe -O
> MKNLS =3D         yes
> OBJMACHINE =3D    yes
> MKOBJDIRS =3D     yes
> MKHOSTOBJ =3D     yes
> UPDATE =3D        no
> BUILD =3D         yes
> X11SRCDIR =3D     /usr/xsrc
> X11_TYPE =3D      native
>=20
> well that's it...

I meant an example of the error you get.  What's the version of the
source tree, etc.

--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
KT Tunstall, Silent Sea, Eye to the Telescope, 2004.

--r+TdwuXy+OXS8TUs
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)

iQEVAwUBQ1TImdgoQloHrPnoAQKSsAgAjV6lr08/lVwy6b0/sw9mIcBeE8C8oHFH
K/mbwHMDpezFVVSqN/krKIbGsagfCxpX350MiCxVaoM7QJ+V5gN/ihplws62tTMq
vureo9oftMds1h28QjOMh1vs1AS/xzM4KXebII7J2Zc//L8nJzL6CyHSi5KdBb6I
yG4wGgaeNwBZqdL+nooHE7roQ/mqS8aTJwc2eoHmEWYHfqVLlc9TolaK6jL8H1O+
PeQTts54tPODf75pCV8cjXL7SQOYHd2Yy5lekdjNl2EbLJ0E/VwCQD3fkgyA69kN
68FZe3k1SI/XyYe6+tNM5sVmAILkRpXN1TREKge5qBadr84uRRsV8Q==
=IoTl
-----END PGP SIGNATURE-----

--r+TdwuXy+OXS8TUs--