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 in linux ci runs
  • Loading branch information
ttytm committed Nov 11, 2024
1 parent d5c8c51 commit 70070b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 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
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 70070b9

Please # to comment.