Parcourir la source

libdpkg: Mark functions as DPKG_ATTR_NORET

Warned-by: clang
Guillem Jover il y a 11 ans
Parent
commit
39dac7ef6d
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 1 1
      lib/dpkg/command.h
  2. 1 1
      lib/dpkg/compress.c

+ 1 - 1
lib/dpkg/command.h

@@ -55,7 +55,7 @@ void command_add_args(struct command *cmd, ...) DPKG_ATTR_SENTINEL;
 void command_exec(struct command *cmd) DPKG_ATTR_NORET;
 
 const char *command_get_pager(void);
-void command_shell(const char *cmd, const char *name);
+void command_shell(const char *cmd, const char *name) DPKG_ATTR_NORET;
 
 /** @} */
 

+ 1 - 1
lib/dpkg/compress.c

@@ -503,7 +503,7 @@ filter_lzma(struct io_lzma *io, int fd_in, int fd_out)
 		ohshite(_("%s: lzma close error"), io->desc);
 }
 
-static void
+static void DPKG_ATTR_NORET
 filter_lzma_error(struct io_lzma *io, lzma_ret ret)
 {
 	ohshit(_("%s: lzma error: %s"), io->desc,