Skip to content

Commit

Permalink
Fix unhandled switch warning (#15)
Browse files Browse the repository at this point in the history
* Run CI on pull request

* Fix unhandled switch warning

Signed-off-by: mikee47 <mike@sillyhouse.net>
  • Loading branch information
mikee47 authored Nov 2, 2022
1 parent 167231b commit 2c9a809
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci-push.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CI Push

on: [push]
on: [push, pull_request]

jobs:
build:
Expand Down
13 changes: 13 additions & 0 deletions jerryscript.patch
Original file line number Diff line number Diff line change
Expand Up @@ -194,3 +194,16 @@ index 91bb3fe3..1f0f1d35 100644
} jerry_fatal_code_t;

/**
diff --git a/jerry-core/jrt/jrt-fatals.c b/jerry-core/jrt/jrt-fatals.c
index 36c02277..94d0934f 100644
--- a/jerry-core/jrt/jrt-fatals.c
+++ b/jerry-core/jrt/jrt-fatals.c
@@ -29,7 +29,7 @@
void JERRY_ATTR_NORETURN
jerry_fatal (jerry_fatal_code_t code) /**< status code */
{
-#ifndef JERRY_NDEBUG
+#if 0
switch (code)
{
case ERR_OUT_OF_MEMORY:

0 comments on commit 2c9a809

Please sign in to comment.