Skip to content

Commit 3923e61

Browse files
committed
Fix clang warnings
1 parent 5e21e46 commit 3923e61

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/expand.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,7 @@ namespace Sass {
980980
*/
981981

982982
const char* cstr = text.c_str();
983-
Sass_Import_Entry parent = ctx.import_stack.back();
983+
// Sass_Import_Entry parent = ctx.import_stack.back();
984984
SelectorParser p2(ctx, cstr, "foobar", 0);
985985
if (block_stack.size() > 2) {
986986
Block* b = block_stack.at(block_stack.size() - 2);

src/parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ namespace Sass {
4242
auto resultasd = p2.identifier();
4343
return p2.scanner.isDone();
4444
}
45-
catch (Exception::InvalidSyntax err) {
45+
catch (Exception::InvalidSyntax& err) {
4646
return false;
4747
}
4848
}

src/parser_stylesheet.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ namespace Sass {
356356
}
357357

358358
}
359-
catch (Exception::InvalidSyntax err) {
359+
catch (Exception::InvalidSyntax& err) {
360360
if (!couldBeSelector) throw;
361361

362362
// If the value would be followed by a semicolon, it's
@@ -1039,7 +1039,7 @@ namespace Sass {
10391039
return imp.detach();
10401040
}
10411041
}
1042-
catch (Exception::InvalidSyntax err) {
1042+
catch (Exception::InvalidSyntax& err) {
10431043
// ToDo: refactor to return and throw here
10441044
error("Invalid URL: ${innerError.message}",
10451045
err.pstate
@@ -2723,7 +2723,7 @@ relase. For details, see http://bit.ly/moz-document.
27232723
try {
27242724
buffer.write(rawText(&StylesheetParser::_number));
27252725
}
2726-
catch (Exception::InvalidSyntax err) {
2726+
catch (Exception::InvalidSyntax& err) {
27272727
return false;
27282728
}
27292729
break;

0 commit comments

Comments
 (0)