Documentation/MyFirstObjectWalk: add #include "trace.h" to use trace_printf()
- From
Vinayak Dev <vinayakdev.sci@gmail.com>
- Date
- Jun 29, 2023, 16:05 UTC
- Message-ID
- <CADE8Naq5W3Bn=gwV7W-xMvYOMMRO=ZY9Ly6im4Rb_qFjMWTbTg@mail.gmail.com>
Hey there! I was looking through Documentation/MyFirstObjectWalk.txt, and upon building the branch containing the given code, I find that I get the error that C99 does not allow implicit function declaration where trace_printf() is encountered. However, upon including trace.h the error disappears, and the build proceeds just fine.
I did put DEVELOPER=1 in config.mak before building, but it doesn't seem to work.
Is the error pointing to a problem, or am I doing something wrong? If it is the former, I would be very happy to send a patch fixing this.
Thanks a lot! Vinayak