“No previous prototype for function” warning

前端 未结 4 1629
情歌与酒
情歌与酒 2021-02-01 12:59

i use shareKit to myself program .

but in the FBConnectGlobal, there are some warning,

NSMutableArray* FBCreateNonRetainingArray() {
  CFArrayCallBacks c         


        
4条回答
  •  一整个雨季
    2021-02-01 13:44

    According to c standard, declaring the prototype as

    NSMutableArray* FBCreateNonRetainingArray(void);
    //      --------------->                  ^^^^   
    // Yes, with the void as the parameter
    

    solves the issue.

提交回复
热议问题