Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #91586

Re: Intentionally unused variable, suppress warnings for just one?

From mathog <dmathog@gmail.com>
Newsgroups comp.lang.c
Subject Re: Intentionally unused variable, suppress warnings for just one?
Date 2016-08-02 15:14 -0700
Organization A noiseless patient Spider
Message-ID <nnr629$5cl$1@dont-email.me> (permalink)
References <nnr3ga$pjj$1@dont-email.me> <lneg663kt5.fsf@kst-u.example.com>

Show all headers | View raw


Keith Thompson wrote:
> This seems to work for gcc, and may work for other compilers as well:
>
>      SOME_STRUCTURE_TYPE a_structure;
>      int a_result = a_function(&a_structure);
>      (void)a_result;

That works for me.

Thanks!

David Mathog

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Intentionally unused variable, suppress warnings for just one? mathog <dmathog@gmail.com> - 2016-08-02 14:30 -0700
  Re: Intentionally unused variable, suppress warnings for just one? Keith Thompson <kst-u@mib.org> - 2016-08-02 14:47 -0700
    Re: Intentionally unused variable, suppress warnings for just one? mathog <dmathog@gmail.com> - 2016-08-02 15:14 -0700
    Re: Intentionally unused variable, suppress warnings for just one? David Brown <david.brown@hesbynett.no> - 2016-08-03 14:17 +0200
  Re: Intentionally unused variable, suppress warnings for just one? gordonb.sapr8@burditt.org (Gordon Burditt) - 2016-08-02 16:52 -0500
    Re: Intentionally unused variable, suppress warnings for just one? David Brown <david.brown@hesbynett.no> - 2016-08-03 14:21 +0200
    Re: Intentionally unused variable, suppress warnings for just one? James Kuyper <jameskuyper@verizon.net> - 2016-08-03 10:46 -0400

csiph-web