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