Menu

#930 shell.h: silence GCC 7.3.0 warning

18.2.1
closed
None
Other
Low
18.2.0
True
2019-02-07
2018-03-24
No

When the shell.h file is included by a C++ file and GCC 7.3.0 is used the following warning is emitted:

ChibiOS/os/various/shell/shell.h:200:20: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
   chprintf(stream, "Usage: %s"SHELL_NEWLINE_STR, message)

The attached patch against the stable_18.2.x branch silences this warning.

1 Attachments

Discussion

  • Giovanni Di Sirio

    • assigned_to: Giovanni Di Sirio
    • Fixed in Repository: False --> True
     
  • Giovanni Di Sirio

    • Status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB