-
Notifications
You must be signed in to change notification settings - Fork 37
Comparing changes
Open a pull request
base repository: rtrlib/rtrlib
base: master
head repository: rtrlib/rtrlib
compare: smlng-pr_travis_fix_cppcheck
- 16 commits
- 22 files changed
- 2 contributors
Commits on Apr 11, 2016
-
- update travis.yml - add live validation test - run make test on travis - build with and w/o libssh
Configuration menu - View commit details
-
Copy full SHA for c92a898 - Browse repository at this point
Copy the full SHA c92a898View commit details -
lib: remove unnecessary assignment
Remove an unnecessary variable assignment, after the assignment the variable was not acessed anymore. Fixes cppcheck warning: [rtrlib/lib/ipv6.c:64]: (style) Variable 'bits_left' is assigned a value that is never used.
Configuration menu - View commit details
-
Copy full SHA for 0621701 - Browse repository at this point
Copy the full SHA 0621701View commit details -
Move the declaration of the rm_node variable into the block where it's used. This fixes cppcheck warning: [rtrlib/pfx/lpfst/lpfst-pfx.c:57]: (style) The scope of the variable 'rm_node' can be reduced.
Configuration menu - View commit details
-
Copy full SHA for 47705e0 - Browse repository at this point
Copy the full SHA 47705e0View commit details -
pfx: remove duplicate assignment
The variable tmp was assigned two times in a row the same value. Remove one of the assignments. This fixes cppcheck warning: [rtrlib/pfx/lpfst/lpfst.c:112] -> [rtrlib/pfx/lpfst/lpfst.c:113]: (performance) Variable 'tmp' is reassigned a value before the old one has been used.
Configuration menu - View commit details
-
Copy full SHA for e2cdd6e - Browse repository at this point
Copy the full SHA e2cdd6eView commit details -
scripts: supress cppcheck duplicateExpression warning in packets.c
cppcheck was warning: [rtrlib/rtr/packets.c:974] -> [rtrlib/rtr/packets.c:974]: (style) Same expression on both sides of '||'. [rtrlib/rtr/packets.c:976] -> [rtrlib/rtr/packets.c:976]: (style) Same expression on both sides of '||'. The expression checks if the rtval is the same than enum error values, that are represented internally as the same integer values. It should explicitly check for the enum values to ensure that the code still works if the order of the enum changes. Therefore suppress the cppcheck warning.
Configuration menu - View commit details
-
Copy full SHA for c2c8eb8 - Browse repository at this point
Copy the full SHA c2c8eb8View commit details -
transport: reduce variable scope
Move the variables into the blocks were are they used and remove the unnecessary initialization. This fixes cppcheck warnings: [rtrlib/transport/transport.c:46]: (style) The scope of the variable 'rtval' can be reduced. [rtrlib/transport/transport.c:66]: (style) The scope of the variable 'rtval' can be reduced.
Configuration menu - View commit details
-
Copy full SHA for f5b6577 - Browse repository at this point
Copy the full SHA f5b6577View commit details -
Move the variables into the blocks were they are used. This fixes cppcheck warnings: [tools/cli-validator.c:67]: (style) The scope of the variable 'inputLength' can be reduced. [tools/cli-validator.c:92]: (style) The scope of the variable 'spaces' can be reduced.
Configuration menu - View commit details
-
Copy full SHA for b8a69ca - Browse repository at this point
Copy the full SHA b8a69caView commit details -
scripts: supress unwated cppcheck warning in ip.c
Cppcheck warned: [rtrlib/lib/ip.c:66]: (style) The function 'lrtr_ip_str_cmp' is never used. The function is used by external programs, like test programs that are not checked by cppcheck. Keep the function, supress the warning
Configuration menu - View commit details
-
Copy full SHA for 7a27b68 - Browse repository at this point
Copy the full SHA 7a27b68View commit details -
scripts: supress cppcheck unusedFunction warnings in transport.c
Supress the following cppcheck warnings: [rtrlib/transport/transport.c:23]: (style) The function 'tr_free' is never used. [rtrlib/transport/transport.c:38]: (style) The function 'tr_ident' is never used. Both functions are used by programs using the library.
Configuration menu - View commit details
-
Copy full SHA for 09299be - Browse repository at this point
Copy the full SHA 09299beView commit details -
Move variable declarations in the blocks were they are used. The commit fixes the following cppcheck warnings: [rtrlib/spki/hashtable/ht-spkitable.c:143]: (style) The scope of the variable 'element' can be reduced. [rtrlib/spki/hashtable/ht-spkitable.c:191]: (style) The scope of the variable 'current_entry' can be reduced.
Configuration menu - View commit details
-
Copy full SHA for 4b92f04 - Browse repository at this point
Copy the full SHA 4b92f04View commit details -
scripts: supress cppcheck unusedFunctions warnings in ht-spkitable
Supress the following warning: [rtrlib/spki/hashtable/ht-spkitable.c:188]: (style) The function 'spki_table_search_by_ski' is never used. The function is used by external programs.
Configuration menu - View commit details
-
Copy full SHA for 618aee3 - Browse repository at this point
Copy the full SHA 618aee3View commit details -
lib: specify field width length in scanf expression
This fixes the cppcheck warning: [rtrlib/lib/ipv4.c:35]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
Configuration menu - View commit details
-
Copy full SHA for c803ca6 - Browse repository at this point
Copy the full SHA c803ca6View commit details -
scripts: include cppcheck problem id in output
Include the id of the reported problem in the cppcheck output. This makes it easier to find out the ID for supressing messages.
Configuration menu - View commit details
-
Copy full SHA for 3bee0fc - Browse repository at this point
Copy the full SHA 3bee0fcView commit details -
rtrlib: fix pointer arithmetics with void * types
The C standard doesn't allow arithmetics with void * types because it's an incomplete type. Fix the parts in packets.c by using a typed ptr for the arithmetics. This fixes the cppcheck warnings: arithOperationsOnVoidPointer:rtrlib/rtr/packets.c(737):(portability) 'ary' is of type 'void * *'. When using void pointers in calculations, the behaviour is undefined. arithOperationsOnVoidPointer:rtrlib/rtr/packets.c(739):(portability) 'ary' is of type 'void * *'. When using void pointers in calculations, the behaviour is undefined. arithOperationsOnVoidPointer:rtrlib/rtr/packets.c(764):(portability) 'ary' is of type 'void * *'. When using void pointers in calculations, the behaviour is undefined. This commit also adapts the line number for suppressed cppcheck messages in the file which moved with this change.
Configuration menu - View commit details
-
Copy full SHA for 0526a63 - Browse repository at this point
Copy the full SHA 0526a63View commit details -
scripts: supress cppcheck warnings in tommyds header files
cppcheck was complaining about issues in tommyds header files, despite the directory is already ignored explicit. Also add supress lines for the tommyds header files to supress: CastIntegerToAddressAtReturn:rtrlib/spki/hashtable/tommyds-1.8/tommyarrayof.h(114):(portability) Returning an integer in a function with pointer return type is not portable. CastIntegerToAddressAtReturn:rtrlib/spki/hashtable/tommyds-1.8/tommyarrayblkof.h(95):(portability) Returning an integer in a function with pointer return type is not portable.
Configuration menu - View commit details
-
Copy full SHA for 5cd6836 - Browse repository at this point
Copy the full SHA 5cd6836View commit details -
scripts: use code annotations to supress cppcheck warnings
Instead of listing the line number in the code for that the warning should be suppressed at inline annotations. This prevents that the line number of the suppression has to be changed in scripts/cppcheck.sh whenever the source file was changed.
Configuration menu - View commit details
-
Copy full SHA for ea82da5 - Browse repository at this point
Copy the full SHA ea82da5View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff master...smlng-pr_travis_fix_cppcheck