Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sass
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
楚学文
node-sass
Commits
25587632
Commit
25587632
authored
Mar 17, 2018
by
Benjamin Byholm
Committed by
Michael Mifsud
Mar 18, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Silence g++7 switch case fallthrough warnings
parent
968020e9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
+7
-1
color.cpp
src/sass_types/color.cpp
+1
-1
color.h
src/sass_types/color.h
+6
-0
No files found.
src/sass_types/color.cpp
View file @
25587632
...
...
@@ -28,7 +28,7 @@ namespace SassTypes
}
a
=
Nan
::
To
<
double
>
(
raw_val
[
3
]).
FromJust
();
// fall through vvv
NODE_SASS_FALLTHROUGH
;
case
3
:
if
(
!
raw_val
[
0
]
->
IsNumber
()
||
!
raw_val
[
1
]
->
IsNumber
()
||
!
raw_val
[
2
]
->
IsNumber
())
{
...
...
src/sass_types/color.h
View file @
25587632
...
...
@@ -4,6 +4,12 @@
#include <nan.h>
#include "sass_value_wrapper.h"
#if defined(__GNUC__) && __GNUC__ >= 7
#define NODE_SASS_FALLTHROUGH __attribute__ ((fallthrough))
#else
#define NODE_SASS_FALLTHROUGH
#endif
namespace
SassTypes
{
class
Color
:
public
SassValueWrapper
<
Color
>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment