Please delete this report completely.
Thank you!
-std=c99, c11, c18 compiles but reports:
"warning: implicit declaration of function ‘popen’; did you mean
‘fopen’? [-Wimplicit-function-declaration]"
--
RSI (Rick Stanley, Inc.)
(917) 822-7771
www.rsiny.com
Computer Systems Consulting
Linux & Open Source Specialists
Warning incorrectly reported:
"warning: implicit declaration of function ‘popen’; did you mean
‘fopen’? [-Wimplicit-function-declaration]"
Package: gcc
Version: 4:10.2.1-1
Severity: normal
X-Debbugs-Cc: r...@scotsgeek.com
Dear Maintainer,
*** Reporter, please consider answering these questions, where appropriate ***
* What led up to the situation?
#include
int main(void)
{
popen("ls -la", "r");
return 0;
}
-std=c89,
Please cancel and delete this entire report. This was a valgrind
issue.
Sorry for bothering you.
Thank you!
Rick Stanley
--
RSI (Rick Stanley, Inc.)
(917) 822-7771
www.rsiny.com
Computer Systems Consulting
Linux & Open Source Specialists
Correct code that created the error message in valgrind:
#include
#include
#include
#define DIM 32
int main(void)
{
char *p = NULL;
p = malloc(DIM);
if(p == NULL)
{
printf("Allocation error.\n");
exit(1);
}
strcpy(p, "This is a test.");
for(int x = 0 ; x
Package: gcc-9
Version: 9.3.0-15
Severity: important
X-Debbugs-Cc: r...@scotsgeek.com
Dear Maintainer,
Source:
#include
#include
#define DIM 32
char p[DIM] = "NULL";
int main(void)
{
strcpy(p, "This is a test.");
for(int x = 0 ; x < DIM; ++x)
{
printf("%02x ", p[x]);
}
7 matches
Mail list logo