~vcs-imports/pmake/main

Viewing all changes in revision 2312.

  • Committer: rillig
  • Date: 2020-09-13 15:27:25 UTC
  • Revision ID: rillig-20200913152725-cey2rhmkpwasqjlk
make(1): fix position of MAKE_ATTR_UNUSED in inline functions

The attribute needs to be before the return type, otherwise GCC 5
complains that Hash_GetValue is defined but not used, when compiling
with USER_CPPFLAGS=-Dinline=.  The other functions don't get any
warnings.  It's probably because Hash_GetValue is the only inline
function that returns a pointer.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: