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

fix redefinition warning for RESET_COLOR #792

Closed
wants to merge 1 commit into from

Conversation

DhruvParanjape
Copy link
Contributor

No description provided.

Copy link
Contributor

@vitaut vitaut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. Looks good, but why change the definitions of RESET_COLOR and WRESET_COLOR?

const char RESET_COLOR[] = "\x1b[0m";
const wchar_t WRESET_COLOR[] = L"\x1b[0m";
static FMT_CONSTEXPR_DECL const char RESET_COLOR[] = "\x1b[0m";
static FMT_CONSTEXPR_DECL const wchar_t WRESET_COLOR[] = L"\x1b[0m";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why static?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that would be copy-pasta mistake on my part.

@vitaut
Copy link
Contributor

vitaut commented Jul 4, 2018

Merged with some tweaks in ec218a3. Thanks!

@vitaut vitaut closed this Jul 4, 2018
@DhruvParanjape
Copy link
Contributor Author

awesome sorry about the late reply and some pretty cool tweaks if I may say so myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants