mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:21:41 +03:00
cmake: fixed comments in compile checks code
This commit is contained in:
parent
c10f3a1e0b
commit
954284f919
1 changed files with 3 additions and 3 deletions
|
|
@ -513,7 +513,7 @@ void check(char c) {}
|
|||
int
|
||||
main () {
|
||||
char buffer[1024];
|
||||
// This will not compile if strerror_r does not return a char*
|
||||
/* This will not compile if strerror_r does not return a char* */
|
||||
check(strerror_r(EACCES, buffer, sizeof(buffer))[0]);
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -522,13 +522,13 @@ main () {
|
|||
#include <string.h>
|
||||
#include <errno.h>
|
||||
|
||||
// float, because a pointer can't be implicitly cast to float
|
||||
/* float, because a pointer can't be implicitly cast to float */
|
||||
void check(float f) {}
|
||||
|
||||
int
|
||||
main () {
|
||||
char buffer[1024];
|
||||
// This will not compile if strerror_r does not return an int
|
||||
/* This will not compile if strerror_r does not return an int */
|
||||
check(strerror_r(EACCES, buffer, sizeof(buffer)));
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue