[MacPorts] #44286: fixes for eggdrop port on mavericks
MacPorts
noreply at macports.org
Tue Jul 15 13:53:59 PDT 2014
#44286: fixes for eggdrop port on mavericks
----------------------+---------------------------------
Reporter: dre@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.1
Resolution: | Keywords: haspatch maintainer
Port: eggdrop |
----------------------+---------------------------------
Comment (by ryandesign@…):
Replying to [comment:7 dre@…]:
> ... and in the spirit of maybe educating others on this theme that I
just learned in the process of figuring this out: the 'inline' keyword on
a function exists purely as a (potential) performance optimization. When
this keyword is present, it directs the compiler to integrate the
function's code into the code of all the callers of that function, with
the goal of eliminating the function call overhead (if you didn't know
this fact and you are laughing, you have sufficiently modern
sensibilities). Although the inline keyword was occasionally useful 'back
in the day', modern compilers are very smart, and do not appreciate being
told when to inline something. The compiler is so sure of itself that it's
an error to declare something inline. Without the inline keyword, the
function might still be inlined, at the compiler's discretion.
It's not a problem to use the `inline` keyword with modern compilers.
However, clang and gcc handle the `inline` keyword differently, as
described here: http://clang.llvm.org/compatibility.html#inline
--
Ticket URL: <https://trac.macports.org/ticket/44286#comment:11>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list