Project

General

Profile

Bug #8464

audioconvert: cannot convert 'std::nullptr_t' to 'char' in assignment

Added by Toomas Soome over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
2017-07-05
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:

Description

Build error from gcc 6:

parse.cc: In function 'int parse_format(char*, AudioHdr&, format_type&, off_t&)':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:40:14: error: cannot convert 'std::nullptr_t' to 'char' in assignment
 #define NULL nullptr
              ^
parse.cc:176:13: note: in expansion of macro 'NULL'
    *cp2++ = NULL;
             ^~~~
*** Error code 1

An attempt to assign NULL to char. not good.

History

#1

Updated by Electric Monk about 2 years ago

  • % Done changed from 90 to 100
  • Status changed from In Progress to Closed

git commit 2bee374f9ad3367948d472f4e3489135fcac9e1c

commit  2bee374f9ad3367948d472f4e3489135fcac9e1c
Author: Toomas Soome <tsoome@me.com>
Date:   2017-07-25T18:53:12.000Z

    8464 audioconvert: cannot convert 'std::nullptr_t' to 'char' in assignment
    Reviewed by: Peter Tribble <peter.tribble@gmail.com>
    Reviewed by: Jason King <jason.brian.king@gmail.com>
    Reviewed by: Yuri Pankov <yuripv@gmx.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF