BoevaLab / FREEC

Control-FREEC: Copy number and genotype annotation in whole genome and whole exome sequencing data
152 stars 49 forks source link

Build warnings, potential bugs #11

Closed sambrightman closed 7 years ago

sambrightman commented 7 years ago

When building FREEC with a modern toolchain, I see quite a few suspicious warnings:

https://gist.github.com/sambrightman/dbb4b3d3e260672b0ed57a89c8869c79

For me the compiler is:

[sam@Sams-MacBook-Pro src ((776efec...) *%)]$ g++ --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin16.1.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

but recent versions of GCC should also warn about such things.

valeu commented 7 years ago

Yes, == was a bug. I corrected it 10 minutes ago :) I have also removed some unused variables. Thank you for your feedback. The changes will appear in v10.3

valeu commented 7 years ago

I have cleaned the code a little bit in v10.2. and the "==" typo was fixed.

sambrightman commented 7 years ago

Great! I've done some more in #12.