|
From: | Louis Chrétien |
Subject: | Re: [Bug-apl] Error compiling on Mac OS X 10.13.6 |
Date: | Thu, 25 Apr 2019 12:02:01 -0400 |
I don’t know what the “-Wno-old-style-cast” does, but it did the trick! SVN 1140 now compiles without errors. One other thing: Clang complains about file UserPreferences.cc, line 235: it has an empty body. To silence the warning, you have to move the semicolon to the next line… g++ -DHAVE_CONFIG_H -I. -I.. -Wall -I sql -Wold-style-cast -Werror -march=native -I/opt/local/include -Wno-deprecated-declarations -Wno-old-style-cast -MT apl-UserPreferences.o -MD -MP -MF .deps/apl-UserPreferences.Tpo -c -o apl-UserPreferences.o `test -f 'UserPreferences.cc' || echo './'`UserPreferences.cc UserPreferences.cc:235:33: error: if statement has empty body [-Werror,-Wempty-body] if (chdir("/")) ; ^ UserPreferences.cc:235:33: note: put the semicolon on a separate line to silence this warning 1 error generated. make[3]: *** [apl-UserPreferences.o] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
--- Louis Chrétien |
[Prev in Thread] | Current Thread | [Next in Thread] |