Warnings when compiling with MS Visual Studio



Hello everybody. Happy new year !

I program objects for Dia with Visual Studio 6.0. There are many Warnings witch do not prevent me from compiling, but (although I think it is not useful to correct them) it may interest you if you have to change these files one day.

  • In dia/lib/element.h, line 60 : warning C4305: 'initializing' : truncation from 'const double ' to 'float '
...
/* base property stuff ... */
static PropNumData width_range = { -G_MAXFLOAT, G_MAXFLOAT, 0.1};
...


  • In dia/lib/properties.h, lines 466 and 467 : warning C4305: 'initializing' : truncation from 'const double ' to 'float '
...
#ifdef G_OS_WIN32
static PropNumData prop_std_line_width_data = { 0.0, 10.0, 0.01 };
static PropNumData prop_std_text_height_data = { 0.1, 10.0, 0.1 };
...


  • In dia/config.h, line 26 : warning C4005: 'LIBXML_DLL_IMPORT' : macro redefinition
...
/*
 * We are linking libxml as DLL with either msvc or mingw, but this
 * gets only defined form libxml for (_MSC_VER)
 */
#define LIBXML_DLL_IMPORT __declspec(dllimport)
...

For this one, my includes are :

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <assert.h>
#include <math.h>
#include <string.h>

#include "intl.h"
#include "object.h"
#include "element.h"
#include "connectionpoint.h"
#include "diarenderer.h"
#include "attributes.h"
#include "widgets.h"
#include "message.h"
#include "properties.h"

---------------------------------------------------------------------------------

Of course, I think I can find other ones in the future. If you want me to bring them to you, tell me. Have a nice day.

Jonathan Chaboissier



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]