Bug #8397

sysevent.h: C++11 requires a space between literal and string macro

Added by Toomas Soome 2 months ago. Updated 2 months ago.

Status:ClosedStart date:2017-06-15
Priority:NormalDue date:
Assignee:Toomas Soome% Done:

100%

Category:lib - userland libraries
Target version:-
Difficulty:Bite-size Tags:needs-triage

Description

Build error with gcc 6:

/code/illumos-gate/proto/root_i386/usr/include/sys/sysevent.h:72:34: error: invalid suffix on literal; C++11 requires a space between literal and string macro [-Werror=literal-suffix]
 #define SUNW_KERN_PUB SUNW_VENDOR":"SE_KERN_PUB
                                  ^
/code/illumos-gate/proto/root_i386/usr/include/sys/sysevent.h:73:33: error: invalid suffix on literal; C++11 requires a space between literal and string macro [-Werror=literal-suffix]
 #define SUNW_USR_PUB SUNW_VENDOR":"SE_USR_PUB
                                 ^
cc1plus: all warnings being treated as errors

History

#1 Updated by Electric Monk 2 months ago

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

git commit 99d29265ec47e10c7ec8c18a67fc83e7dd5ce4f8

commit  99d29265ec47e10c7ec8c18a67fc83e7dd5ce4f8
Author: Toomas Soome <tsoome@me.com>
Date:   2017-06-19T14:47:48.000Z

    8397 sysevent.h: C++11 requires a space between literal and string macro
    Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
    Reviewed by: Igor Kozhukhov <igor@dilos.org>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom