ignore discarded qualifiers warning upon assigning string literal
ccls still shows me the warning and another one for the `diagnostic ignored` saying `unknown warning group`, not sure if it's fixable in ccls, might be time to move to clang/d? although I've heard it has issues too, not sure
This commit is contained in:
parent
d8a0393fe1
commit
a6a1d0c65e
1 changed files with 3 additions and 0 deletions
|
@ -23,7 +23,10 @@ semver version(void) { return _version; }
|
|||
const char *name(void) { return "sep"; }
|
||||
|
||||
static size_t length = 8;
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdiscarded-qualifiers"
|
||||
static char *sep_char = "-";
|
||||
#pragma GCC diagnostic pop
|
||||
static size_t sep_char_length = 1;
|
||||
|
||||
uint8_t init(semver api_ver, char **config) {
|
||||
|
|
Loading…
Reference in a new issue