diff options
| author | bloodstalker <thabogre@gmail.com> | 2016-12-22 20:43:12 +0000 | 
|---|---|---|
| committer | bloodstalker <thabogre@gmail.com> | 2016-12-22 20:43:12 +0000 | 
| commit | 4878b0b998948b41956293123d7f31b8c3705eca (patch) | |
| tree | f2bd56a3b7c312762d4cf449c10522eb367275b1 | |
| parent | added a new build type. now using some attributes from c++1z (diff) | |
| download | mutator-4878b0b998948b41956293123d7f31b8c3705eca.tar.gz mutator-4878b0b998948b41956293123d7f31b8c3705eca.zip | |
added maybe_unused attrib to silence some warnings if you are building with the new mode
| -rw-r--r-- | mutator.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/mutator.cpp b/mutator.cpp index 114bfea..301e4a5 100644 --- a/mutator.cpp +++ b/mutator.cpp @@ -391,7 +391,7 @@ public:        SR.setBegin(SL);        SR.setEnd(SLE);        Rewriter::RewriteOptions opts; -      int RangeSize = Rewrite.getRangeSize(SR, opts); +      int RangeSize [[maybe_unused]] = Rewrite.getRangeSize(SR, opts);  #if 0        Rewrite.InsertText(SBSL, "{\n", "true", "true"); @@ -433,7 +433,7 @@ public:        SR.setBegin(SL);        SR.setEnd(SLE);        Rewriter::RewriteOptions opts; -      int RangeSize = Rewrite.getRangeSize(SR, opts); +      int RangeSize [[maybe_unused]] = Rewrite.getRangeSize(SR, opts);  #if 0        Rewrite.InsertText(CSL, "{\n", "true", "true"); | 
