Commit 25587632 by Benjamin Byholm Committed by Michael Mifsud

Silence g++7 switch case fallthrough warnings

parent 968020e9
......@@ -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()) {
......
......@@ -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> {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment