]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: declare across file variables in blkidP.h [smatch scan]
authorSami Kerola <kerolasa@iki.fi>
Sun, 12 Feb 2017 18:48:21 +0000 (18:48 +0000)
committerKarel Zak <kzak@redhat.com>
Mon, 20 Feb 2017 12:00:58 +0000 (13:00 +0100)
Else these variables will cause following warning:

libblkid/src/superblocks/superblocks.c:165:29: warning: symbol
'superblocks_drv' was not declared.  Should it be static?

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
libblkid/src/blkidP.h
libblkid/src/probe.c

index 817c8b02b596bdc742ce0c6b38623a94bd54b03a..de41473a870cdc5a246812e9ca0dabecf331f39d 100644 (file)
@@ -116,6 +116,11 @@ struct blkid_chaindrv {
        void            (*free_data)(blkid_probe, void *);
 };
 
+/* chains */
+extern const struct blkid_chaindrv superblocks_drv;
+extern const struct blkid_chaindrv topology_drv;
+extern const struct blkid_chaindrv partitions_drv;
+
 /*
  * Low-level probe result
  */
index df90a82e09446eae24856bfeea99d75f12003c2a..ab05fb2d395298c09f22c9fe93d9e3d746a0e804 100644 (file)
 #include "strutils.h"
 #include "list.h"
 
-/* chains */
-extern const struct blkid_chaindrv superblocks_drv;
-extern const struct blkid_chaindrv topology_drv;
-extern const struct blkid_chaindrv partitions_drv;
-
 /*
  * All supported chains
  */