[parrot/parrot] 0dc1b1: Eliminate cpu_type.c warning in g++ builds

GitHub noreply at github.com
Sun Sep 23 22:56:33 UTC 2012


  Branch: refs/heads/master
  Home:   https://github.com/parrot/parrot
  Commit: 0dc1b1c1c375174e395844d75e8dd406e6b88722
      https://github.com/parrot/parrot/commit/0dc1b1c1c375174e395844d75e8dd406e6b88722
  Author: jkeenan <jkeenan at cpan.org>
  Date:   2012-09-23 (Sun, 23 Sep 2012)

  Changed paths:
    M src/platform/generic/cpu_type.c

  Log Message:
  -----------
  Eliminate cpu_type.c warning in g++ builds

In g++ builds, we were getting this warning:

src/platform/generic/cpu_type.c: In function 'STRING* Parrot_get_cpu_type(parrot_interp_t*)':
src/platform/generic/cpu_type.c:48: warning: deprecated conversion from string constant to 'char*'

Not initializing with empty string avoids warning and appears to do no harm.





More information about the parrot-commits mailing list