2014-11-12 23:09
avsm changed the topic of #mirage to: mirage 2 released! party on!
00:04
dezzy_ has joined #mirage
00:05
dezzy has quit [Ping timeout: 252 seconds]
00:16
dezzy has joined #mirage
00:17
dezzy_ has quit [Ping timeout: 240 seconds]
01:24
_whitelogger has joined #mirage
02:24
yegods has quit [Remote host closed the connection]
03:03
_whitelogger has joined #mirage
03:21
<
apache2 >
whe ncompiling I get:
03:21
<
apache2 >
# lib/sodium_stubs.c:6:4: error: ignoring return value of ‘sodium_init’, declared with attribute warn_unused_result [-Werror=unused-result]
03:21
<
apache2 >
# sodium_init();
03:21
<
apache2 >
# ^~~~~~~~~~~~~
03:21
<
apache2 >
# lib/sodium_stubs.c: In function ‘caml__3_sodium_memcmp’:
03:21
<
apache2 >
# lib/sodium_stubs.c:21:4: error: ignoring return value of ‘sodium_memcmp’, declared with attribute warn_unused_result [-Werror=unused-result]
03:21
<
apache2 >
# sodium_memcmp(x13, x14, x15);
03:21
<
apache2 >
value caml__1_sodium_init(value x1)
03:21
<
apache2 >
sodium_init();
03:21
<
apache2 >
return Val_unit;
03:22
<
apache2 >
value caml__3_sodium_memcmp(value x12, value x11, value x10)
03:22
<
apache2 >
char* x13 = CTYPES_PTR_OF_OCAML_STRING(x12);
03:22
<
apache2 >
char* x14 = CTYPES_PTR_OF_OCAML_STRING(x11);
03:22
<
apache2 >
size_t x15 = ctypes_size_t_val(x10);
03:22
<
apache2 >
sodium_memcmp(x13, x14, x15);
03:22
<
apache2 >
return Val_unit;
03:22
<
apache2 >
but in my local )old_ checkout I get:
03:22
<
apache2 >
value caml__1_sodium_init(value x1)
03:22
<
apache2 >
return Val_int(x2);
03:22
<
apache2 >
int x2 = sodium_init();
03:22
<
apache2 >
whic seems more correct
04:28
andreas23 has joined #mirage
04:31
andreas231 has quit [Ping timeout: 244 seconds]
05:39
noddy has quit [Ping timeout: 248 seconds]
06:27
copy` has quit [Quit: Connection closed for inactivity]
07:11
jermar has quit [Read error: Connection reset by peer]
07:14
jermar has joined #mirage
08:05
fgimenez has joined #mirage
08:08
andreas23 has quit [Quit: Leaving.]
08:22
AltGr has joined #mirage
08:32
<
reynir >
What version are you compiling?
08:32
<
reynir >
apache2: ^
08:35
<
reynir >
Ah, it seems release 0.5.0 ignores the result
08:48
<
apache2 >
sorry, yes, I'm compiling 0.50.0
08:48
<
apache2 >
or trying to; it doesn't work :(
09:03
andreas23 has joined #mirage
09:06
mort___ has joined #mirage
09:11
fgimenez has quit [Ping timeout: 260 seconds]
09:11
fgimenez has joined #mirage
09:15
mort___ has quit [Quit: Leaving.]
09:20
<
reynir >
I'm not sure what you can do... Maybe it's possible to disable -werror=unused-result somehow
09:55
jermar has quit [Ping timeout: 250 seconds]
10:04
mort___ has joined #mirage
10:23
mort___ has quit [Quit: Leaving.]
10:32
jermar has joined #mirage
10:40
<
apache2 >
maybe they can fix the code :p
10:41
<
apache2 >
I'm going to pin to a local copy that has the correct return types
10:41
<
apache2 >
when would you ever want to call a function that does a memcmp and throws away the result?
10:48
<
reynir >
only case I can htink of is if you want to trigger a page fault in a round about way, maybe :P
10:53
mort___ has joined #mirage
11:02
fgimenez has quit [Ping timeout: 260 seconds]
11:04
fgimenez has joined #mirage
11:04
fgimenez has joined #mirage
11:04
fgimenez has quit [Changing host]
11:05
miragebot has joined #mirage
11:05
<
miragebot >
mirage/master 0ed2dda Anil Madhavapeddy: Define Flow.or_eof as a type alias for the Data|Eof return case
11:05
<
miragebot >
mirage/master d47ba81 Anil Madhavapeddy: Refactor CHANNEL types to be exception-less and use `result`...
11:05
miragebot has left #mirage [#mirage]
11:05
<
miragebot >
mirage/master 875824f Anil Madhavapeddy: docs: elaborate on the result type in the V1 ocamloc
11:12
jermar has quit [Ping timeout: 250 seconds]
11:48
mort___ has quit [Quit: Leaving.]
12:14
jermar has joined #mirage
13:04
fgimenez has quit [Ping timeout: 246 seconds]
13:05
fgimenez has joined #mirage
13:05
fgimenez has joined #mirage
13:05
fgimenez has quit [Changing host]
13:59
fgimenez has quit [Ping timeout: 260 seconds]
14:11
fgimenez has joined #mirage
14:40
agarwal1975 has joined #mirage
14:41
copy` has joined #mirage
15:19
agarwal1975 has quit [Quit: agarwal1975]
15:26
agarwal1975 has joined #mirage
15:41
agarwal1975 has quit [Quit: agarwal1975]
15:49
andreas23 has quit [Quit: Leaving.]
15:57
yegods has joined #mirage
16:30
rgrinberg has joined #mirage
16:58
mort___ has joined #mirage
17:18
fgimenez has quit []
17:20
noddy has joined #mirage
17:24
mort___ has quit [Quit: Leaving.]
17:44
fgimenez has joined #mirage
17:44
fgimenez has joined #mirage
17:45
AltGr has left #mirage [#mirage]
18:09
fgimenez has quit []
18:57
andreas23 has joined #mirage
19:21
noddy has quit [Ping timeout: 248 seconds]
21:14
twopoint718 has joined #mirage
21:15
rgrinberg has quit [Remote host closed the connection]
21:16
rgrinberg has joined #mirage
21:30
yegods has quit [Remote host closed the connection]
21:31
yegods has joined #mirage
23:04
jermar has quit [Ping timeout: 244 seconds]