Re: NULL vs 0 vs 0L bikeshed time

From: Marc Olzheim <marcolz_at_stack.nl>
Date: Wed, 3 Mar 2004 22:27:14 +0100
On Wed, Mar 03, 2004 at 08:39:02PM +0000, Mark Murray wrote:
> This is very good to know! What version of FreeBSD? What ports?

I ran it on FreeBSD 4.2 thru 4.9, on our compile server and on our
office-installserver, using a whole lot of "workstation" packages (like
kde*, gnome*) and development packages...

I didn't try it on my amd64 until now, or on any other FreeBSD 5.x
machine for that matter, so I don't know it that'll break anything, but
I will soon find out... :-P
I think it will fix more than it will break though.

On my FreeBSD 4.x systems, I only sporadically encountered problems
along the years and all have been fixed by the ports maintainers after
pointing them out to them...

Anyway, I'll run a portupgrade -af on my amd64 and see if anything
breaks...

> You likely have a boatload of local patches. Care to share them? :-)

I have no patches related to this, or maybe other local patches prevent
problems from arising... I'll look into it.

One other (unclean) patch I can think of to enable full warning -Werror
compilation of our own programs is this, which was fixed in 4.x, but
reappeared in 5.x, i.e. enabling the use of strftime("%+") ...
This does not fix any compile problems for the current ports though.

--- /usr/src/contrib/gcc/c-format.c	Sat Jul 12 04:00:11 2003
+++ /usr/src/contrib/gcc/c-format.c	Fri Feb  6 14:05:13 2004
_at__at_ -817,7 +817,7 _at__at_
   { "C",		0, STD_C99, NOLENGTHS, "-_0EOw", "o"  },
   { "D", 		0, STD_C99, NOLENGTHS, "",       "2"  },
   { "eVu",		0, STD_C99, NOLENGTHS, "-_0Ow",  ""   },
-  { "FRTnrt",		0, STD_C99, NOLENGTHS, "",       ""   },
+  { "+FRTnrt",		0, STD_C99, NOLENGTHS, "",       ""   },
   { "g", 		0, STD_C99, NOLENGTHS, "O-_0w",  "2o" },
   { "G",		0, STD_C99, NOLENGTHS, "-_0Ow",  "o"  },
   { "h",		0, STD_C99, NOLENGTHS, "^#",     ""   },

Marc
Received on Wed Mar 03 2004 - 12:27:17 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:45 UTC