Skip to content

Commit

Permalink
Suppress warning on clang about overly long string literals in
Browse files Browse the repository at this point in the history
outcome_gdb.h.
  • Loading branch information
ned14 committed Jul 30, 2024
1 parent 5bcd0f3 commit 6a0421b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doc/html
Submodule html updated 493 files
7 changes: 7 additions & 0 deletions include/outcome/outcome_gdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ Distributed under the Boost Software License, Version 1.0.

#ifndef OUTCOME_DISABLE_INLINE_GDB_PRETTY_PRINTERS
#if defined(__ELF__)
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Woverlength-strings"
#endif
__asm__(".pushsection \".debug_gdb_scripts\", \"MS\",@progbits,1\n"
".byte 4 /* Python Text */\n"
".ascii \"gdb.inlined-script\\n\"\n"
Expand Down Expand Up @@ -149,6 +153,9 @@ __asm__(".pushsection \".debug_gdb_scripts\", \"MS\",@progbits,1\n"

".byte 0\n"
".popsection\n");
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif
#endif

Expand Down

0 comments on commit 6a0421b

Please sign in to comment.