Mercurial > octave
changeset 23791:e5a1c8eb1d5b
* shared-fcns.h (prepend_octave_home): Tag with unused attribute.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 24 Jul 2017 12:52:21 -0400 |
parents | e263cf468abd |
children | 0fb64e83f8b3 |
files | src/shared-fcns.h |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/shared-fcns.h Mon Jul 24 12:42:23 2017 -0400 +++ b/src/shared-fcns.h Mon Jul 24 12:52:21 2017 -0400 @@ -170,6 +170,12 @@ return retval; } +// prepend_octave_home is used in mkoctfile.in.cc and +// octave-config.in.cc but not in main.in.cc. Tagging it as unused +// avoids warnings from GCC about an unused function but should not +// cause trouble in the event that it actually is used. + +OCTAVE_UNUSED static std::string prepend_octave_home (const std::string& s) {