Thread (14 messages) 14 messages, 3 authors, 2016-06-15

Re: [RFC/PATCH 0/5] macro-based key/value maps

flat view

From: Jeff King <hidden>
Date: 2016-06-15 22:51:45

On Fri, Aug 05, 2011 at 05:31:37PM +0200, René Scharfe wrote:
Am 05.08.2011 13:03, schrieb Jeff King:
quoted
  Commits 1, 4, and 5 introduce infrastructure in the form of static
  functions and macros that contain functions that call the statics. But
  they don't actually instantiate the macro functions themselves, so
  they won't compile with -Werror (due to the "unused static" warning)
  until there is some calling code.

  That hurts bisectability a little if you compile with -Werror (you
  need to add -Wno-error=unused-function). I don't know how much we
  care.
I don't know either, but you could avoid the issue by adding a test-maps
command in the first patch and exercising the new functionality a bit.
Yes, but then the final git executable carries around dead code for the
test map and cache types. There are ways to split the macros versus
their instantiation so that the test instantiations only live in the
test-map program, but then that would bring back the "static is not
used" error.

Maybe carrying the dead code isn't that big a deal. It's not that much
extra code.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help