Merge pull request #66 from xexyl/1986
This commit is contained in:
1 file changed
+7
-6
@@ -10,12 +10,13 @@ USA
|
|||||||
make all
|
make all
|
||||||
|
|
||||||
|
|
||||||
NOTE: Cody Boone Ferguson fixed this to compile with clang (it worked with gcc).
|
NOTE: [Cody Boone Ferguson](/winners.html#Cody_Boone_Ferguson) fixed this to
|
||||||
The problem was that clang is more strict about the type of second arg to
|
compile and work with clang (it already worked with gcc). The problem was that
|
||||||
main(). However simply changing it to a `char **` and updating the `*s` to `**s`
|
clang is more strict about the type of second arg to main(). However simply
|
||||||
caused a segfault. By adding a new variable, `char *t`, initialising it to `s`
|
changing it to a `char **` and updating the `*s` to `**s` caused a segfault. By
|
||||||
and then using `t` instead of `s` it compiles and runs successfully under clang
|
adding a new variable, `char *t`, initialising it to `s` and then using `t`
|
||||||
and gcc. Thank you Cody for your assistance!
|
instead of `s` it compiles and runs successfully under clang and gcc. Thank you
|
||||||
|
Cody for your assistance!
|
||||||
|
|
||||||
## Try:
|
## Try:
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user