Backslash newline at end of file warning

后端 未结 6 1633
猫巷女王i
猫巷女王i 2020-12-20 12:59

With this code:

#include 


int main(int argc, char *argv[])
{

  return 0;
}


/** run2: A macro to call a function. */
#define run2( functi         


        
6条回答
  •  孤城傲影
    2020-12-20 13:30

    At a guess, what you're missing is a new-line following the final closing brace. It's reasonable for the compiler to warn about that (the C and C++ standards say it gives undefined behavior), but the text of the message is misleading about the source of the problem.

提交回复
热议问题