Dump the data only in DEBUG builds
authorAntonio Ospite <ospite@studenti.unina.it>
Tue, 24 Jan 2012 14:39:24 +0000 (15:39 +0100)
committerAntonio Ospite <ospite@studenti.unina.it>
Wed, 25 Jan 2012 14:57:30 +0000 (15:57 +0100)
commita083bf6cc5c360d21f357c410142b3e9f12da79c
tree6cc70fe6e13dfb82aa8e0553ba8b5eda5cccebcc
parent6d8691adaf1b7f1ec3f443ebb5cf494f5981b235
Dump the data only in DEBUG builds

Also use -Werror only in DEBUG builds, otherwise normal builds fail with:

src/am7xxx.c:42:13: error: ‘dump_header’ defined but not used [-Werror=unused-function]
src/am7xxx.c:73:13: error: ‘dump_buffer’ defined but not used [-Werror=unused-function]
CMakeLists.txt
src/am7xxx.c