Fix clang warnings
These particular warnings have always struck me as stupid
This commit is contained in:
parent
1c4b50894c
commit
6278922f7a
|
@ -54,7 +54,7 @@ void sway_log(int verbosity, const char* format, ...) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (colored) {
|
if (colored) {
|
||||||
fprintf(stderr, verbosity_colors[c]);
|
fprintf(stderr, "%s", verbosity_colors[c]);
|
||||||
}
|
}
|
||||||
|
|
||||||
va_list args;
|
va_list args;
|
||||||
|
@ -77,7 +77,7 @@ void sway_log_errno(int verbosity, char* format, ...) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (colored) {
|
if (colored) {
|
||||||
fprintf(stderr, verbosity_colors[c]);
|
fprintf(stderr, "%s", verbosity_colors[c]);
|
||||||
}
|
}
|
||||||
|
|
||||||
va_list args;
|
va_list args;
|
||||||
|
@ -88,7 +88,7 @@ void sway_log_errno(int verbosity, char* format, ...) {
|
||||||
fprintf(stderr, ": ");
|
fprintf(stderr, ": ");
|
||||||
char error[256];
|
char error[256];
|
||||||
strerror_r(errno, error, sizeof(error));
|
strerror_r(errno, error, sizeof(error));
|
||||||
fprintf(stderr, error);
|
fprintf(stderr, "%s", error);
|
||||||
|
|
||||||
if (colored) {
|
if (colored) {
|
||||||
fprintf(stderr, "\x1B[0m");
|
fprintf(stderr, "\x1B[0m");
|
||||||
|
|
Loading…
Reference in a new issue