Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warnings during compilation #12

Open
kenorb opened this issue Apr 9, 2018 · 0 comments
Open

Warnings during compilation #12

kenorb opened this issue Apr 9, 2018 · 0 comments

Comments

@kenorb
Copy link
Contributor

kenorb commented Apr 9, 2018

It compiles fine, but the following warnings are shown:

$ make
[ 12%] Building C object CMakeFiles/afsctool.dir/afsctool.c.o
[ 25%] Building CXX object CMakeFiles/afsctool.dir/main.cpp.o
[ 37%] Building CXX object CMakeFiles/afsctool.dir/ParallelProcess.cpp.o
[ 50%] Building CXX object CMakeFiles/afsctool.dir/Thread/Thread.cpp.o
[ 62%] Building CXX object CMakeFiles/afsctool.dir/CritSectEx/CritSectEx.cpp.o
[ 75%] Building CXX object CMakeFiles/afsctool.dir/CritSectEx/msemul.cpp.o
RJVB/afsctool/CritSectEx/msemul.cpp:131:37: warning: cast to 'void *' from smaller integer type 'int'
      [-Wint-to-void-pointer-cast]
        pthread_setspecific( sharedMemKey, (void*) useShared );
                                           ^
RJVB/afsctool/CritSectEx/msemul.cpp:418:11: warning: enumeration values 'MSH_EMPTY' and 'MSH_CLOSED' not
      handled in switch [-Wswitch]
                switch( hHandle->type ){
                        ^
RJVB/afsctool/CritSectEx/msemul.cpp:418:11: note: add missing switch cases
                switch( hHandle->type ){
                        ^
RJVB/afsctool/CritSectEx/msemul.cpp:585:15: warning: enumeration values 'MSH_EMPTY' and 'MSH_CLOSED' not
      handled in switch [-Wswitch]
        else switch( hHandle->type ){
                     ^
RJVB/afsctool/CritSectEx/msemul.cpp:585:15: note: add missing switch cases
        else switch( hHandle->type ){
                     ^
RJVB/afsctool/CritSectEx/msemul.cpp:1722:10: warning: enumeration values 'MSH_EMPTY' and 'MSH_CLOSED'
      not handled in switch [-Wswitch]
        switch( type ){
                ^
RJVB/afsctool/CritSectEx/msemul.cpp:1722:10: note: add missing switch cases
        switch( type ){
                ^
4 warnings generated.
[ 87%] Building C object CMakeFiles/afsctool.dir/CritSectEx/timing.c.o
[100%] Linking CXX executable afsctool
[100%] Built target afsctool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant