• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Baremetal Lisp interpreter and compiler for low-resource devices


コミットメタ情報

リビジョンca3111a23e41e0fa23a25c3f0815705d0253c9e8 (tree)
日時2020-09-10 05:20:44
作者AlaskanEmily <emily@alas...>
コミッターAlaskanEmily

ログメッセージ

Fixes for compiling with clang

変更サマリ

差分

--- a/makefile
+++ b/makefile
@@ -4,7 +4,7 @@
44 # Unix makefile.
55
66 CC=cc
7-CFLAGS=-g -Wall -Wextra -pedantic -Werror -ansi -Wshadow -Wno-old-style-declaration
7+CFLAGS=-g -Wall -Wextra -pedantic -Werror -ansi -Wshadow -Wno-old-style-declaration -Wno-unknown-warning-option
88 COMPILEFLAG=-c
99 COUT=-o
1010
--- a/sl_i.c
+++ b/sl_i.c
@@ -866,7 +866,7 @@ SL_I_ALL_ARITHMETIC(SL_I_TEST_ARITHMETIC)
866866
867867 /* = */
868868 if(SL_S_COMPARE_ATOMS(&sl_x_eq, atom)){
869- if(!SL_S_LengthCompare(list->tail, 2) == 0){
869+ if(SL_S_LengthCompare(list->tail, 2) != 0){
870870 rt->pending_error = "Invalid arith in =";
871871 return SL_S_NIL;
872872 }
--- a/test_memcpy.c
+++ b/test_memcpy.c
@@ -132,4 +132,4 @@ static int TestMemCpy(int seed){
132132 }
133133 }
134134 return SUCCESS_INDICATOR;
135-}
\ No newline at end of file
135+}
--- a/test_sl_s_parse.c
+++ b/test_sl_s_parse.c
@@ -626,7 +626,7 @@ static struct YYY_Test sl_s_parse_tests[] = {
626626 YYY_TEST_FUNCTION(ParseTest, sl_s_parse_tests, "ParseTest")
627627
628628 int main(int argc, char *argv[]){
629- int ok, i, e;
629+ int ok, i;
630630 struct YYY_Test *target;
631631 ok = 0;
632632 if(argc > 1){
@@ -638,7 +638,7 @@ int main(int argc, char *argv[]){
638638 fputc('\n', stderr);
639639 }
640640 else{
641- YYY_RUN_TEST(*target, e, "ParseTest");
641+ YYY_RUN_TEST(*target, ok, "ParseTest");
642642 }
643643 }
644644 }
--- a/yyy_test.h
+++ b/yyy_test.h
@@ -17,7 +17,7 @@ struct YYY_Test{
1717 };
1818
1919
20-#if (defined __GNUC__)
20+#if (defined __GNUC__) && !(defined __clang__)
2121 #define YYY_FUNC __builtin_FUNCTION()
2222 #else
2323 #define YYY_FUNC __FUNCTION__