Hi, I compiled GTK3 into a static library. But with warnings (-Wall , etc) on, I get many warnings in GTK code too. How can I get warnings only for my project and not any from GTK library ?
Example:
#include "gtk/gtk.h"
int main(void)
{
return 0;
}
* Warnings on:
-------------- Build: Release in Temp (compiler: LLVM Clang Compiler 9 GTK Library)---------------
Process terminated with status 0 (0 minute(s), 12 second(s))
1 error(s), 1962 warning(s) (0 minute(s), 12 second(s))
* Warnings off:
-------------- Build: Release in Temp (compiler: LLVM Clang Compiler 10 GTK Library Warnings_Disabled)---------------
Process terminated with status 0 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
A GtkWidget is not a GtkRecentInfo, so you cannot store a GtkWidget pointer into an array of pointers to GtkRecentInfo. The compiler is telling you that you’re doing such an assignment.