-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Using GCC 3.3.6, I get the following warning:
choosing ... over ... because conversion sequence for the argument is better.
Now, I want to disable this warning as described in gcc warning options by providing an argument like
-Wno-theNameOfTheWarning
But I don't know the name of the warning…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a function declared as:
void event_add_card (EventAddr addr, EventType type, unsigned char card);
and union
typedef union EventData
{
float money; /**< money info */
unsigned char card; /**< new card */
}
EventData;
When i compile following code:
EventData…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
When using autotools (with a config.h file) for both a library and a software built on that library the compiler complains about a redefinition of some macros (PACKAGE_NAME, PACKAGE_TARNAME and so on).
How can I prevent this?
The config.h file is needed in the library to propagate it's setting to…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
symbol.c: In function 'symbol_FPrint':
symbol.c:1209: warning: format '%ld' expects type 'long int', but argument 3 has type 'SYMBOL'
symbol.c: In function 'symbol_FPrintOtter':
symbol.c:1236: warning: format '%ld' expects type 'long int', but argument 3 has type 'SYMBOL'
symbol.c:1239: warning:…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm getting a number of these warnings when compiling a few binaries:
warning: incompatible implicit declaration of built-in function ‘strcpy’
warning: incompatible implicit declaration of built-in function ‘strlen’
warning: incompatible implicit declaration of built-in function ‘exit’
To try…
>>> More