Просмотр исходного кода

dselect: Do not forward declare ‘enum quitaction’

Standard C++ does not allow declaring an incomplete enum type. And the
enum is already declared in «dselect/dselect.h» which gets included
first.

This was spotted by a run with the clang static analyzer.
Guillem Jover лет назад: 16
Родитель
Сommit
49453ca056
1 измененных файлов с 0 добавлено и 2 удалено
  1. 0 2
      dselect/bindings.h

+ 0 - 2
dselect/bindings.h

@@ -21,8 +21,6 @@
 #ifndef BINDINGS_H
 #define BINDINGS_H
 
-enum quitaction;
-
 struct keybindings {
   struct interpretation;