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

compiler warnings #51

Closed
thomasschaeferm opened this issue Jul 13, 2018 · 1 comment
Closed

compiler warnings #51

thomasschaeferm opened this issue Jul 13, 2018 · 1 comment

Comments

@thomasschaeferm
Copy link

With gcc --version gcc (SUSE Linux) 7.3.1 20180323 [gcc-7-branch revision 258812] Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I get some warnings:

gcc  -Wall -c -o libipv6.o tools/libipv6.c
gcc  -Wall -o addr6 tools/addr6.c libipv6.o -lpcap -lm 
cp tools/blackhole6 ./
gcc  -Wall -o flow6 tools/flow6.c libipv6.o -lpcap -lm
gcc  -Wall -o frag6 tools/frag6.c libipv6.o -lpcap -lm 
gcc  -Wall -o icmp6 tools/icmp6.c libipv6.o -lpcap -lm
gcc  -Wall -o jumbo6 tools/jumbo6.c libipv6.o -lpcap -lm
gcc  -Wall -o na6 tools/na6.c libipv6.o -lpcap -lm
gcc  -Wall -o ni6 tools/ni6.c libipv6.o -lpcap -lm
tools/ni6.c: In function ‘send_packet’:
tools/ni6.c:1873:7: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
       if(idata->verbose_f)
       ^~
tools/ni6.c:1876:8: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
        return(-1);
        ^~~~~~
tools/ni6.c:1886:7: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
       if(idata->verbose_f)
       ^~
tools/ni6.c:1889:8: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
        return(-1);
        ^~~~~~
tools/ni6.c:1915:7: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
       if(idata->verbose_f)
       ^~
tools/ni6.c:1918:8: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
        return(-1);
        ^~~~~~
tools/ni6.c:1973:7: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
       if(idata->verbose_f)
       ^~
tools/ni6.c:1976:8: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
        return(-1);
        ^~~~~~
tools/ni6.c:1991:7: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
       if(idata->verbose_f)
       ^~
tools/ni6.c:1994:8: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
        return(-1);
        ^~~~~~
tools/ni6.c:2012:7: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
       if(idata->verbose_f)
       ^~
tools/ni6.c:2015:8: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
        return(-1);
        ^~~~~~
tools/ni6.c:2023:7: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
       if(idata->verbose_f)
       ^~
tools/ni6.c:2026:8: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
        return(-1);
        ^~~~~~
tools/ni6.c:2039:7: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
       if(idata->verbose_f)
       ^~
tools/ni6.c:2042:8: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
        return(-1);
        ^~~~~~
tools/ni6.c:2050:7: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
       if(idata->verbose_f)
       ^~
tools/ni6.c:2053:8: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
        return(-1);
        ^~~~~~
tools/ni6.c:2083:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
     if(idata->verbose_f)
     ^~
tools/ni6.c:2086:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
      return(-1);
      ^~~~~~
tools/ni6.c:2094:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
     if(idata->verbose_f)
     ^~
tools/ni6.c:2097:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
      return(-1);
      ^~~~~~
tools/ni6.c:2105:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
     if(idata->verbose_f)
     ^~
tools/ni6.c:2108:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
      return(-1);
      ^~~~~~
tools/ni6.c:2130:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
     if(idata->verbose_f)
     ^~
tools/ni6.c:2133:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
      return(-1);
      ^~~~~~
tools/ni6.c:2184:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
     if(idata->verbose_f)
     ^~
tools/ni6.c:2187:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
      return(-1);
      ^~~~~~
tools/ni6.c:2195:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
     if(idata->verbose_f)
     ^~
tools/ni6.c:2198:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
      return(-1);
      ^~~~~~
tools/ni6.c:2208:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
     if(idata->verbose_f)
     ^~
tools/ni6.c:2211:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
      return(-1);
      ^~~~~~
gcc  -Wall -o ns6 tools/ns6.c libipv6.o -lpcap -lm
gcc  -Wall -o path6 tools/path6.c libipv6.o -lpcap -lm
tools/path6.c: In function ‘main’:
tools/path6.c:743:7: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
       for(i=0; i<pprobe; i++)
       ^~~
tools/path6.c:746:8: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
        printf("  %f ms", time_diff_ms(&(test[phop][pprobe].rtstamp), &(test[phop][pprobe].ststamp)));
        ^~~~~~
gcc  -Wall -o ra6 tools/ra6.c libipv6.o -lpcap -lm
tools/ra6.c: In function ‘main’:
tools/ra6.c:1370:7: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
       if(idata.verbose_f>1)
       ^~
tools/ra6.c:1373:8: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
        continue;
        ^~~~~~~~
tools/ra6.c: In function ‘print_attack_info’:
tools/ra6.c:2041:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
     if(idata->fragh_f)
     ^~
tools/ra6.c:2045:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
  if(preference > 3){
  ^~
gcc  -Wall -o rd6 tools/rd6.c libipv6.o -lpcap -lm
gcc  -Wall -o rs6 tools/rs6.c libipv6.o -lpcap -lm
gcc  -Wall -o scan6 tools/scan6.c libipv6.o -lpcap -lm
cp tools/script6 ./
gcc  -Wall -o tcp6 tools/tcp6.c libipv6.o -lpcap -lm
gcc  -Wall -o udp6 tools/udp6.c libipv6.o -lpcap -lm
echo "# SI6 Networks' IPv6 Toolkit Configuration File" > \
           data/ipv6toolkit.conf
echo WWW-client=curl >> \
           data/ipv6toolkit.conf 
echo OUI-Database=/usr/local/share/ipv6toolkit/oui.txt >> \
           data/ipv6toolkit.conf 
echo Ports-Database=/usr/local/share/ipv6toolkit/service-names-port-numbers.csv >> \
           data/ipv6toolkit.conf 
echo Top-Ports-Database=/usr/local/share/ipv6toolkit/top-port-numbers.csv >> \
           data/ipv6toolkit.conf 
echo Country-Database=/usr/local/share/ipv6toolkit/country-data.csv >> \
           data/ipv6toolkit.conf 
echo DNS-Suffix-Database=/usr/local/share/ipv6toolkit/public_suffix_list.dat >> \
           data/ipv6toolkit.conf
echo RIR-Database=/usr/local/share/ipv6toolkit/rir-database.csv >> \
           data/ipv6toolkit.conf 
echo DNS-Dictionary=/usr/local/share/ipv6toolkit/dns-dictionary.txt >> \
           data/ipv6toolkit.conf 
@fgont
Copy link
Owner

fgont commented Apr 16, 2020

Apologies for the delay. Fixed!

@fgont fgont closed this as completed Apr 16, 2020
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

2 participants