Closed ngie-eign closed 5 years ago
@jmmv: this came about as a subthread when reviewing #197. It probably won't pass Travis because Travis is broken on master. #195 would make this change a bit more green by at least checking to make sure things compile on Travis.
@jmmv: ready! It needs some more fix up in order to pass make apidocs
, but I will resolve that as part of #197.
@jmmv: ping?
This was merged as part of #197, so I'm closing this PR.
Was it? The #197 diff doesn't mention UTILS_UNUSED_PARAM at all...
Was it? The #197 diff doesn't mention UTILS_UNUSED_PARAM at all...
It was based on that branch. Sorry about the confusion >_>..
I don't understand... even if that commit was on top of another unmerged branch, GitHub should have showed the diff against the master branch (and thus have showed the two changes). Also, looking at head, I still see the macro. So... this PR needs to be revived? Is that what you meant?
I don't understand... even if that commit was on top of another unmerged branch, GitHub should have showed the diff against the master branch (and thus have showed the two changes). Also, looking at head, I still see the macro. So... this PR needs to be revived? Is that what you meant?
Oh wait! I split them up! Shoot... yeah, I'll revive the branch in a sec.
Ugh. Need to use another name. GitHub isn't letting me reopen this because I prematurely deleted the branch :(.
Ok, opened a new PR: #201. I'm waiting for it to complete.
Unlike C, C++ has the ability to omit parameter names in implemented interfaces when the parameter is unused, aka "unnamed parameters"
This change does the following:
UTILS_UNUSED_PARAM(x)
with/* x */
.unused_*
.__attribute__((unused))
.Signed-off-by: Enji Cooper yaneurabeya@gmail.com