Skip to content

Commit 1401fb8

Browse files
authored
Fix a label can only be part of a statement warning (#61)
1 parent 5f650a1 commit 1401fb8

File tree

4 files changed

+23
-14
lines changed

4 files changed

+23
-14
lines changed

.github/workflows/main.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: GitHub Actions CI
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
types: [opened, synchronize, reopened]
49

510
jobs:
611
build-linux:
@@ -14,23 +19,25 @@ jobs:
1419
- { name: x86, flags: "-m32" }
1520
- { name: x64, flags: "-m64" }
1621
compiler:
17-
- { name: GNU, CC: gcc-10, CXX: g++-10, }
18-
- { name: LLVM, CC: clang-10, CXX: clang++-10 }
19-
flavor: [ Debug, Release ]
22+
- { name: GNU, CC: gcc }
23+
- { name: LLVM, CC: clang }
24+
flavor:
25+
- Debug
26+
- Release
2027
mode:
2128
- { name: default, args: "" }
2229
- { name: NO_LIBC, args: -DZYAN_NO_LIBC=ON }
2330

2431
steps:
2532
- name: Checkout
26-
uses: actions/checkout@v2
33+
uses: actions/checkout@v3.1.0
2734

2835
- if: matrix.platform.name == 'x86'
2936
name: Bootstrap
3037
run: |
3138
sudo dpkg --add-architecture i386
3239
sudo rm /etc/apt/sources.list.d/* && sudo apt-get update
33-
sudo apt-get install -y g++-multilib g++-10-multilib
40+
sudo apt-get install -y g++-multilib g++
3441
3542
- name: Configure
3643
env:
@@ -57,14 +64,16 @@ jobs:
5764
- { name: x64, flags: "x64" }
5865
compiler:
5966
- { name: MSVC }
60-
flavor: [ Debug, Release ]
67+
flavor:
68+
- Debug
69+
- Release
6170
mode:
6271
- { name: default, args: "" }
6372
- { name: NO_LIBC, args: -DZYAN_NO_LIBC=ON }
6473

6574
steps:
6675
- name: Checkout
67-
uses: actions/checkout@v2
76+
uses: actions/checkout@v3.1.0
6877

6978
- name: Configure
7079
run: |

include/Zycore/Defines.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@
340340
* Intentional fallthrough.
341341
*/
342342
#if defined(ZYAN_GCC) && __GNUC__ >= 7
343-
# define ZYAN_FALLTHROUGH __attribute__((__fallthrough__))
343+
# define ZYAN_FALLTHROUGH ; __attribute__((__fallthrough__))
344344
#else
345345
# define ZYAN_FALLTHROUGH
346346
#endif

include/Zycore/Zycore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ extern "C" {
5151
/**
5252
* A macro that defines the zycore version.
5353
*/
54-
#define ZYCORE_VERSION (ZyanU64)0x0001000400000000
54+
#define ZYCORE_VERSION (ZyanU64)0x0001000400010000
5555

5656
/* ---------------------------------------------------------------------------------------------- */
5757
/* Helper macros */

resources/VersionInfo.rc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
#include "winres.h"
2828

2929
VS_VERSION_INFO VERSIONINFO
30-
FILEVERSION 1,4,0,0
31-
PRODUCTVERSION 1,4,0,0
30+
FILEVERSION 1,4,1,0
31+
PRODUCTVERSION 1,4,1,0
3232
FILEFLAGSMASK 0x3fL
3333
#ifdef _DEBUG
3434
FILEFLAGS 0x1L
@@ -45,12 +45,12 @@ BEGIN
4545
BEGIN
4646
VALUE "CompanyName", "zyantific"
4747
VALUE "FileDescription", "Zyan Core Library for C"
48-
VALUE "FileVersion", "1.4.0.0"
48+
VALUE "FileVersion", "1.4.1.0"
4949
VALUE "InternalName", "Zycore"
5050
VALUE "LegalCopyright", "Copyright © 2018-2022 by zyantific.com"
5151
VALUE "OriginalFilename", "Zycore.dll"
5252
VALUE "ProductName", "Zyan Core Library for C"
53-
VALUE "ProductVersion", "1.4.0.0"
53+
VALUE "ProductVersion", "1.4.1.0"
5454
END
5555
END
5656
BLOCK "VarFileInfo"

0 commit comments

Comments
 (0)