]> git.alsa-project.org Git - alsa-tools.git/commitdiff
as10k1: make (extern) declarations and definition of macro_depth
authorMichael Tautschnig <tautschn@amazon.com>
Thu, 12 Oct 2023 09:02:53 +0000 (09:02 +0000)
committerJaroslav Kysela <perex@perex.cz>
Wed, 24 Jan 2024 18:09:41 +0000 (19:09 +0100)
All `extern` declarations refer to it as `unsigned int`, but the actual
definition is a signed integer.

Reported by CBMC's goto-cc compiler, which performs type-aware linking.

Closes: https://github.com/alsa-project/alsa-tools/pull/19
Signed-off-by: Michael Tautschnig <tautschn@amazon.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
as10k1/as10k1.h

index b897f3b199e14542d2d1d67a7797a41ddeecce25..171396357a2c9fa0fee8b43f3d631454724e8fd7 100644 (file)
@@ -55,6 +55,6 @@ int tram_table_count=0;
 int gpr_constant_count=0;
 
 char patch_name[PATCH_NAME_SIZE]="NO_NAME";
-int macro_depth=0;
+unsigned int macro_depth=0;