diff options
| author | Tyge Løvset <[email protected]> | 2023-05-24 13:18:27 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-05-24 13:18:27 +0200 |
| commit | 00150a367c1e50c6b68ab878043beb6c1c8baa02 (patch) | |
| tree | 1b53fc787b483caee2ef94f501683084bb1647c9 | |
| parent | b1bbd0564a0d8d43172a654b51ff28bb62e0979a (diff) | |
| download | STC-modified-00150a367c1e50c6b68ab878043beb6c1c8baa02.tar.gz STC-modified-00150a367c1e50c6b68ab878043beb6c1c8baa02.zip | |
Fixes for clang compiler.
| -rw-r--r-- | include/stc/algo/raii.h | 2 | ||||
| -rw-r--r-- | include/stc/priv/template2.h | 2 | ||||
| -rw-r--r-- | misc/examples/csset_erase.c | 2 | ||||
| -rwxr-xr-x | misc/examples/make.sh | 16 |
4 files changed, 11 insertions, 11 deletions
diff --git a/include/stc/algo/raii.h b/include/stc/algo/raii.h index 7b1b445b..b0008a96 100644 --- a/include/stc/algo/raii.h +++ b/include/stc/algo/raii.h @@ -51,4 +51,4 @@ c_with_2(c_EXPAND(C a = C##_init(), b = C##_init(), c = C##_init(), d = C##_init()), \ (C##_drop(&d), C##_drop(&c), C##_drop(&b), C##_drop(&a))) -#endif
\ No newline at end of file +#endif diff --git a/include/stc/priv/template2.h b/include/stc/priv/template2.h index 66ed7739..d7588ca0 100644 --- a/include/stc/priv/template2.h +++ b/include/stc/priv/template2.h @@ -79,4 +79,4 @@ #undef _i_has_eq #undef _i_has_cmp #undef _i_template -#endif
\ No newline at end of file +#endif diff --git a/misc/examples/csset_erase.c b/misc/examples/csset_erase.c index 5fe3fcba..649bb1e3 100644 --- a/misc/examples/csset_erase.c +++ b/misc/examples/csset_erase.c @@ -38,4 +38,4 @@ int main() puts(""); csset_int_drop(&set); -}
\ No newline at end of file +} diff --git a/misc/examples/make.sh b/misc/examples/make.sh index 25b720b8..5c81c4d3 100755 --- a/misc/examples/make.sh +++ b/misc/examples/make.sh @@ -7,14 +7,14 @@ if [ "$(uname)" = 'Linux' ]; then fi cc=gcc; cflags="-DSTC_STATIC -s -O3 -std=c99 -Wall -Wextra -Wpedantic -Wconversion -Wwrite-strings -Wdouble-promotion -Wno-unused-parameter -Wno-implicit-fallthrough -Wno-maybe-uninitialized -Wno-missing-field-initializers" -#cc=gcc; cflags="-g -std=c99 -Werror -Wfatal-errors -Wpedantic -Wall $sanitize" -#cc=tcc; cflags="-Wall -std=c99" -#cc=clang; cflags="-s -O2 -std=c99 -Werror -Wfatal-errors -Wpedantic -Wall -Wno-unused-function -Wsign-compare -Wwrite-strings" -#cc=gcc; cflags="-x c++ -s -O2 -Wall -std=c++20" -#cc=g++; cflags="-x c++ -s -O2 -Wall" -#cc=cl; cflags="-O2 -nologo -W3 -MD" -#cc=cl; cflags="-nologo -TP" -#cc=cl; cflags="-nologo -std:c11" +#cc=gcc; cflags="-DSTC_STATIC -g -std=c99 -Werror -Wfatal-errors -Wpedantic -Wall $sanitize" +#cc=tcc; cflags="-DSTC_STATIC -Wall -std=c99" +#cc=clang; cflags="-DSTC_STATIC -s -O3 -std=c99 -Wall -Wextra -Wpedantic -Wconversion -Wwrite-strings -Wdouble-promotion -Wno-unused-parameter -Wno-unused-function -Wno-implicit-fallthrough -Wno-missing-field-initializers" +#cc=gcc; cflags="-DSTC_STATIC -x c++ -s -O2 -Wall -std=c++20" +#cc=g++; cflags="-DSTC_STATIC -x c++ -s -O2 -Wall" +#cc=cl; cflags="-DSTC_STATIC -O2 -nologo -W3 -MD" +#cc=cl; cflags="-DSTC_STATIC -nologo -TP" +#cc=cl; cflags="-DSTC_STATIC -nologo -std:c11" if [ "$cc" = "cl" ]; then oflag='/Fe:' |
