]> granicus.if.org Git - curl/commit
examples: Avoid reserved names in hiperfifo examples
authorBrad Spencer <bspencer@blackberry.com>
Thu, 18 Jul 2019 18:25:25 +0000 (15:25 -0300)
committerJay Satiro <raysatiro@yahoo.com>
Fri, 26 Jul 2019 02:23:40 +0000 (22:23 -0400)
commitfd5ab4358f09fafc83fc82ffd88c2c0b1c534c15
treeb7aa3247b4a940afe837b581f2090c739c51e25a
parent2741351a7bfa5cd9b58eba0f7afd6b41460368ea
examples: Avoid reserved names in hiperfifo examples

- Trade in __attribute__((unused)) for the classic (void)x to silence
  unused symbols.

Because the classic way is not gcc specific. Also because the prior
method mapped to symbol _Unused, which starts with _ and a capital
letter which is reserved.

Assisted-by: The Infinnovation team
Bug: https://github.com/curl/curl/issues/4120#issuecomment-512542108

Closes https://github.com/curl/curl/pull/4153
docs/examples/ephiperfifo.c
docs/examples/hiperfifo.c