this declaration has no storage class or type specifier。。。警告什么意思
2013-11-12 09:29
676 查看
写msp430程序的时候想要将一个数组转换成字符串用串口发出去,但老是报警。。子函数如下TimerA_UART_print(){char *string;*string = tab[0]; TimerA_UART_tx(*string++);}Description Resource Path Location Type#78-D this declaration has no storage class or type specifier main.c /test_forever line 28 C/C++
ProblemDescription Resource Path Location Type#551-D variable "string" is used before its value is set main.c /test_forever line 182 C/C++ Problem为什么啊。。。。急死了。。。小弟初学者还请高人指点啊。。。。
检举|2013-07-06 9:33
在函数TimerA_UART_print内,定义指针string 没有分配空间,就直接进行加法操作。属于不安全的内存操作。
ProblemDescription Resource Path Location Type#551-D variable "string" is used before its value is set main.c /test_forever line 182 C/C++ Problem为什么啊。。。。急死了。。。小弟初学者还请高人指点啊。。。。
满意回答
检举|2013-07-06 9:33在函数TimerA_UART_print内,定义指针string 没有分配空间,就直接进行加法操作。属于不安全的内存操作。
相关文章推荐
- error: #77-D: this declaration has no storage class or type specifier
- warning C4518: '__int64 ' : storage-class or type specifier(s) unexpected here; ignored
- 关于Android“This Handler class should be static or leaks might occur”警告的处理方法
- 警告:Pointer is missing a nullability type specifier (__nonnull or __nullable)
- EntityType [TableName] has no key defined. Define the key for this EntityType
- java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.Has
- TypeError: 'builtin_function_or_method' object has no attribute '__getitem__'
- java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.Has
- GetDocument missing storage-class or type specifiers的解决方法
- 关于gcc的警告:warning: useless keyword or type name in empty declaration
- Android 关于Handler警告处理 This Handler class should be static or leaks might occur
- Python开发:AttributeError: 'Class_Of_LoanUseCase' object has no attribute '_type_equality_funcs'
- java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.Has
- 警告:This text field does not specify an inputType or a hint
- GetDocument missing storage-class or type specifiers的解决方法
- 解决1418 - This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and b
- 头文件交叉定义出现--GetDocument missing storage-class or type specifiers错误的解决方法
- error C2677: binary '-' : no global operator defined which takes type 'class CString' (or there is n
- java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.Has
- No-args constructor for class X does not exist. Register an InstanceCreator with Gson for this type to fix this problem.