Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build with -pedantic, fix problems #3892

Merged
merged 9 commits into from
Feb 16, 2023
Prev Previous commit
Fix color codepoints
  • Loading branch information
vlstill committed Feb 16, 2023
commit e792401c8673c0b1f924e70403dd49c6741e16a4
7 changes: 4 additions & 3 deletions lib/exceptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ limitations under the License.
namespace Util {

// colors to pretty print messages
constexpr char ANSI_RED[] = "\\e[31m";
constexpr char ANSI_BLUE[] = "\\e[34m";
constexpr char ANSI_CLR[] = "\\e[0m";
// \e is non-standard escape sequence, use codepoint \33 instead
constexpr char ANSI_RED[] = "\33[31m";
constexpr char ANSI_BLUE[] = "\33[34m";
constexpr char ANSI_CLR[] = "\33[0m";

/// Checks if stderr is redirected to a file
/// Check is done only once and then saved to a static variable
Expand Down