Thread overview
warnings reported during compile for STL prototypes
Oct 22, 2002
fractal
Oct 22, 2002
fractal
Oct 22, 2002
fractal
Oct 22, 2002
fry
October 22, 2002
Hi!

Been having fun with your product. As I use the IDE I notice some interesting "features" that I like very much. But then I don't usually us an IDE so... but anyway, I like the point at line in far left of window selects the line. I like the ctrl-right arrow recognizes first parameter in function parameter lists ( no more abcfun( int i) and can do abcfun(int i) - notice the space!). There are some others, like keeping windows open between opening a project.. etc.

Ok, I do have a question:

I enabled exception handling in my application, and started getting some odd warnings from my main.cpp file during a compile. When I turn off exception handling, this goes away.

sc Main.cpp -Ae -mn -C -WA -S -3 -a8 -c -gf -D_CONSOLE=1 -D_MT=1 -oMain.obj
Warning: D:\APPS\DIGITAL_MARS\AUDITOR\Main.cpp(55): implied return of
__uninitialized_copy_aux at closing '}' does not return value
Warning: D:\APPS\DIGITAL_MARS\AUDITOR\Main.cpp(55): implied return of
vector<Connection ,__default_alloc_template<1,0> >::_M_allocate_and_copy at
closing '}' does not return value
Warning: D:\APPS\DIGITAL_MARS\AUDITOR\Main.cpp(55): implied return of
__uninitialized_fill_n_aux at closing '}' does not return value
Warning: D:\APPS\DIGITAL_MARS\AUDITOR\Main.cpp(55): implied return of
__uninitialized_copy_aux at closing '}' does not return value
Lines Processed: 258921  Errors: 0  Warnings: 4
Successful build

I've tried a few things (reorganizing includes - changing calling convention, adding copy c'tor to classes - turning off auto prototyping), but no success. Its clear that the definition of these functions are like:

blahclass(type1 t, type2 t1)

And the compiler is giving them a defualt prototype form like

int blahclass(type1 t, type2 t1)

Any ideas??

Richard


October 22, 2002
In article <ap3tjt$2b74$1@digitaldaemon.com>, fractal@clark.net says...

I tried to isolate the problem a little.. so here's the source:

//vectortest.h
include <vector>
class in
{
public:
in() { }
in(const in& i) { }
~in() { }
};
class test
{
public:
test() { }
~test() { }
private:
vector<in> g;
};

//vectortest.cpp
#include "vectortest.h"
void doit()
{
test t;
}

I put these into a new project with defualt settings and compiled the cpp file. It built with no errors or warnings. Then I checked the Exception Handling box on compiler options and rebuilt. The response follows. I also tried the -EH option suggested in the compiler tools and reference.. but no joy. I'm pretty sure its innocuous, but I hate releasing code with warnings.

sc vectortest.cpp -Ae -Ar -Aa -r -mn -C -WA -S -3 -a8 -c -gf -D_CONSOLE=1
-ovectortest.obj
Warning: D:\APPS\DIGITAL_MARS\test2\vectortest.cpp(10): implied return of
__uninitialized_copy_aux at closing '}' does not return value
Warning: D:\APPS\DIGITAL_MARS\test2\vectortest.cpp(10): implied return of
vector<in ,__default_alloc_template<0,0> >::_M_allocate_and_copy at closing '}'
does not return value
Warning: D:\APPS\DIGITAL_MARS\test2\vectortest.cpp(10): implied return of
__uninitialized_fill_n_aux at closing '}' does not return value
Warning: D:\APPS\DIGITAL_MARS\test2\vectortest.cpp(10): implied return of
__uninitialized_copy_aux at closing '}' does not return value
Lines Processed: 4694  Errors: 0  Warnings: 4
Successful build

Richard

>
>Hi!
>
>Been having fun with your product. As I use the IDE I notice some interesting "features" that I like very much. But then I don't usually us an IDE so... but anyway, I like the point at line in far left of window selects the line. I like the ctrl-right arrow recognizes first parameter in function parameter lists ( no more abcfun( int i) and can do abcfun(int i) - notice the space!). There are some others, like keeping windows open between opening a project.. etc.
>
>Ok, I do have a question:
>
>I enabled exception handling in my application, and started getting some odd warnings from my main.cpp file during a compile. When I turn off exception handling, this goes away.
>
>sc Main.cpp -Ae -mn -C -WA -S -3 -a8 -c -gf -D_CONSOLE=1 -D_MT=1 -oMain.obj
>Warning: D:\APPS\DIGITAL_MARS\AUDITOR\Main.cpp(55): implied return of
>__uninitialized_copy_aux at closing '}' does not return value
>Warning: D:\APPS\DIGITAL_MARS\AUDITOR\Main.cpp(55): implied return of
>vector<Connection ,__default_alloc_template<1,0> >::_M_allocate_and_copy at
>closing '}' does not return value
>Warning: D:\APPS\DIGITAL_MARS\AUDITOR\Main.cpp(55): implied return of
>__uninitialized_fill_n_aux at closing '}' does not return value
>Warning: D:\APPS\DIGITAL_MARS\AUDITOR\Main.cpp(55): implied return of
>__uninitialized_copy_aux at closing '}' does not return value
>Lines Processed: 258921  Errors: 0  Warnings: 4
>Successful build
>
>I've tried a few things (reorganizing includes - changing calling convention, adding copy c'tor to classes - turning off auto prototyping), but no success. Its clear that the definition of these functions are like:
>
>blahclass(type1 t, type2 t1)
>
>And the compiler is giving them a defualt prototype form like
>
>int blahclass(type1 t, type2 t1)
>
>Any ideas??
>
>Richard
>
>


October 22, 2002
In article <ap3tjt$2b74$1@digitaldaemon.com>, fractal@clark.net says...

I tried to isolate the problem a little.. so here's the source:

//vectortest.h
include <vector>
class in
{
public:
in() { }
in(const in& i) { }
~in() { }
};
class test
{
public:
test() { }
~test() { }
private:
vector<in> g;
};

//vectortest.cpp
#include "vectortest.h"
void doit()
{
test t;
}

I put these into a new project with defualt settings and compiled the cpp file. It built with no errors or warnings. Then I checked the Exception Handling box on compiler options and rebuilt. The response follows. I also tried the -EH option suggested in the compiler tools and reference.. but no joy. I'm pretty sure its innocuous, but I hate releasing code with warnings.

sc vectortest.cpp -Ae -Ar -Aa -r -mn -C -WA -S -3 -a8 -c -gf -D_CONSOLE=1
-ovectortest.obj
Warning: D:\APPS\DIGITAL_MARS\test2\vectortest.cpp(10): implied return of
__uninitialized_copy_aux at closing '}' does not return value
Warning: D:\APPS\DIGITAL_MARS\test2\vectortest.cpp(10): implied return of
vector<in ,__default_alloc_template<0,0> >::_M_allocate_and_copy at closing '}'
does not return value
Warning: D:\APPS\DIGITAL_MARS\test2\vectortest.cpp(10): implied return of
__uninitialized_fill_n_aux at closing '}' does not return value
Warning: D:\APPS\DIGITAL_MARS\test2\vectortest.cpp(10): implied return of
__uninitialized_copy_aux at closing '}' does not return value
Lines Processed: 4694  Errors: 0  Warnings: 4
Successful build

Richard

>
>Hi!
>
>Been having fun with your product. As I use the IDE I notice some interesting "features" that I like very much. But then I don't usually us an IDE so... but anyway, I like the point at line in far left of window selects the line. I like the ctrl-right arrow recognizes first parameter in function parameter lists ( no more abcfun( int i) and can do abcfun(int i) - notice the space!). There are some others, like keeping windows open between opening a project.. etc.
>
>Ok, I do have a question:
>
>I enabled exception handling in my application, and started getting some odd warnings from my main.cpp file during a compile. When I turn off exception handling, this goes away.
>
>sc Main.cpp -Ae -mn -C -WA -S -3 -a8 -c -gf -D_CONSOLE=1 -D_MT=1 -oMain.obj
>Warning: D:\APPS\DIGITAL_MARS\AUDITOR\Main.cpp(55): implied return of
>__uninitialized_copy_aux at closing '}' does not return value
>Warning: D:\APPS\DIGITAL_MARS\AUDITOR\Main.cpp(55): implied return of
>vector<Connection ,__default_alloc_template<1,0> >::_M_allocate_and_copy at
>closing '}' does not return value
>Warning: D:\APPS\DIGITAL_MARS\AUDITOR\Main.cpp(55): implied return of
>__uninitialized_fill_n_aux at closing '}' does not return value
>Warning: D:\APPS\DIGITAL_MARS\AUDITOR\Main.cpp(55): implied return of
>__uninitialized_copy_aux at closing '}' does not return value
>Lines Processed: 258921  Errors: 0  Warnings: 4
>Successful build
>
>I've tried a few things (reorganizing includes - changing calling convention, adding copy c'tor to classes - turning off auto prototyping), but no success. Its clear that the definition of these functions are like:
>
>blahclass(type1 t, type2 t1)
>
>And the compiler is giving them a defualt prototype form like
>
>int blahclass(type1 t, type2 t1)
>
>Any ideas??
>
>Richard
>
>


October 22, 2002
In article <ap3tjt$2b74$1@digitaldaemon.com>, fractal@clark.net says...

I tried to isolate the problem a little.. so here's the source:

//vectortest.h
include <vector>
class in
{
public:
in() { }
in(const in& i) { }
~in() { }
};
class test
{
public:
test() { }
~test() { }
private:
vector<in> g;
};

//vectortest.cpp
#include "vectortest.h"
void doit()
{
test t;
}

I put these into a new project with defualt settings and compiled the cpp file. It built with no errors or warnings. Then I checked the Exception Handling box on compiler options and rebuilt. The response follows. I also tried the -EH option suggested in the compiler tools and reference.. but no joy. I'm pretty sure its innocuous, but I hate releasing code with warnings.

sc vectortest.cpp -Ae -Ar -Aa -r -mn -C -WA -S -3 -a8 -c -gf -D_CONSOLE=1
-ovectortest.obj
Warning: D:\APPS\DIGITAL_MARS\test2\vectortest.cpp(10): implied return of
__uninitialized_copy_aux at closing '}' does not return value
Warning: D:\APPS\DIGITAL_MARS\test2\vectortest.cpp(10): implied return of
vector<in ,__default_alloc_template<0,0> >::_M_allocate_and_copy at closing '}'
does not return value
Warning: D:\APPS\DIGITAL_MARS\test2\vectortest.cpp(10): implied return of
__uninitialized_fill_n_aux at closing '}' does not return value
Warning: D:\APPS\DIGITAL_MARS\test2\vectortest.cpp(10): implied return of
__uninitialized_copy_aux at closing '}' does not return value
Lines Processed: 4694  Errors: 0  Warnings: 4
Successful build

Richard

>Been having fun with your product. As I use the IDE I notice some interesting "features" that I like very much. But then I don't usually us an IDE so... but anyway, I like the point at line in far left of window selects the line. I like the ctrl-right arrow recognizes first parameter in function parameter lists ( no more abcfun( int i) and can do abcfun(int i) - notice the space!). There are some others, like keeping windows open between opening a project.. etc.
>
>Ok, I do have a question:
>
>I enabled exception handling in my application, and started getting some odd warnings from my main.cpp file during a compile. When I turn off exception handling, this goes away.
>
>sc Main.cpp -Ae -mn -C -WA -S -3 -a8 -c -gf -D_CONSOLE=1 -D_MT=1 -oMain.obj
>Warning: D:\APPS\DIGITAL_MARS\AUDITOR\Main.cpp(55): implied return of
>__uninitialized_copy_aux at closing '}' does not return value
>Warning: D:\APPS\DIGITAL_MARS\AUDITOR\Main.cpp(55): implied return of
>vector<Connection ,__default_alloc_template<1,0> >::_M_allocate_and_copy at
>closing '}' does not return value
>Warning: D:\APPS\DIGITAL_MARS\AUDITOR\Main.cpp(55): implied return of
>__uninitialized_fill_n_aux at closing '}' does not return value
>Warning: D:\APPS\DIGITAL_MARS\AUDITOR\Main.cpp(55): implied return of
>__uninitialized_copy_aux at closing '}' does not return value
>Lines Processed: 258921  Errors: 0  Warnings: 4
>Successful build
>
>I've tried a few things (reorganizing includes - changing calling convention, adding copy c'tor to classes - turning off auto prototyping), but no success. Its clear that the definition of these functions are like:
>
>blahclass(type1 t, type2 t1)
>
>And the compiler is giving them a defualt prototype form like
>
>int blahclass(type1 t, type2 t1)
>
>Any ideas??
>
>Richard
>
>