Commit 36330cf
committed
silency compiler warnings for gcc 4.7 and before
The option -Wliteral-suffix was introduced in gcc 4.8, and
"#pragma GCC diagnostic push" was added in 4.6. Using the header with an older
gcc would lead to warnings like:
string_view.hpp:438: warning: expected [error|warning|ignored] after '#pragma GCC diagnostic'
string_view.hpp:439: warning: unknown option after '#pragma GCC diagnostic' kind
string_view.hpp:1681: warning: expected [error|warning|ignored] after '#pragma GCC diagnostic'1 parent 6e90d37 commit 36330cf
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
438 | | - | |
439 | | - | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
440 | 442 | | |
441 | 443 | | |
442 | 444 | | |
| |||
452 | 454 | | |
453 | 455 | | |
454 | 456 | | |
455 | | - | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
456 | 462 | | |
457 | 463 | | |
458 | 464 | | |
| |||
0 commit comments