Skip to content

Commit

Permalink
chore: remove comptime else branch to workaround enum cast issue with…
Browse files Browse the repository at this point in the history
… -cstrict; re-enable -cstrict ci runs
  • Loading branch information
ttytm committed Nov 11, 2024
1 parent d5c8c51 commit 9e8dfb6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,10 @@ jobs:
matrix:
os: [ubuntu-20.04, ubuntu-latest]
cc: [tcc, gcc, clang]
include:
- cc: clang
optimization: ['', '-W -cstrict']
exclude:
- cc: tcc
optimization: '-W -cstrict'
- cc: gcc
optimization: '-W'
fail-fast: false
runs-on: ${{ matrix.os }}
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
optimization: ['', '-W']
optimization: ['', '-cstrict']
fail-fast: false
steps:
- name: Restore cache
Expand Down
3 changes: 1 addition & 2 deletions curl/instructions/easy.v
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ pub fn easy_strerror(err_code state.Ecode) string {
pub fn easy_setopt[T](handle &C.CURL, option state.Opt, parameter T) state.Ecode {
$if T is string {
return ecode(C.curl_easy_setopt(handle, int(option), &char(parameter.str)))
} $else {
return ecode(C.curl_easy_setopt(handle, int(option), parameter))
}
return ecode(C.curl_easy_setopt(handle, int(option), parameter))
}

pub fn easy_perform(handle &C.CURL) state.Ecode {
Expand Down

0 comments on commit 9e8dfb6

Please # to comment.