Skip to content

Encoded show_help text causing compiler warnings #13167

Closed
@jsquyres

Description

@jsquyres

With older GCC (e.g., 8), we get warnings when compiling the new very-long strings from #13144:

 "The user is responsible for free'ing the returned string session ID." },
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
show_help_content.c:2723:1: warning: unknown escape sequence: '\;'
 "delimiters - e.g., \"my\;weird.nspace:5\"." },
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
show_help_content.c:3948:1: warning: string length '4136' is greater than the length '4095' ISO C99 compilers are required to support [-Woverlength-strings]
 "Provide all output in XML format" },
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
show_help_content.c:4964:1: warning: string length '5598' is greater than the length '4095' ISO C99 compilers are required to support [-Woverlength-strings]
 "CR_Pack_Nodes configuration parameter." },
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
show_help_content.c:5061:1: warning: string length '5488' is greater than the length '4095' ISO C99 compilers are required to support [-Woverlength-strings]
 "Show help message for cpu_bind" },
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
show_help_content.c:5312:13: warning: no previous prototype for 'opal_show_help_get_content' [-Wmissing-prototypes]
 const char *opal_show_help_get_content(const char *filename, const char* topic)
             ^~~~~~~~~~~~~~~~~~~~~~~~~~

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions