warning: assignment makes pointer from integer without a cast
Today, debug a program with dev-c,
char *p;
p = GetStr();
The result has the above prompt, but the function does return char *.
This prompt is very strange. After searching on the Internet, this man’s answer is satisfactory.
Undeclared function prototypes return int by default.
Link to the original text:
http://hi.baidu.com/huishou/item/aafe9f00b5a66903cd34ea62
Similar Posts:
- [Solved] Operator overload must take either zero or one argument error
- ERROR: Functions in index expression must be marked IMMUTABLE
- deprecated conversion from string constant to char*
- Each child in an array or iterator should have a unique “key” prop. Check the render method of `Tabl
- Component is missing template or render function [How to Solve]
- [Solved] MacOS Install python psycopg2 Error: pg_config executable not found. ld: library not found for -lssl
- error: command ‘gcc’ failed with exit status 1
- Fast locating nonetype ‘object is not Iterable in Python
- Warning: Each child in an array or iterator should have a unique “key” prop. Check the render method
- Python scrapy/ ERROR: Spider must return request, item, or None, got ‘Tag ‘insettlement program