Kaynağa Gözat

GCC 9 points out these consts make no sense

Bryan Drewery 6 yıl önce
ebeveyn
işleme
ae40bc0f4b
3 değiştirilmiş dosya ile 1 ekleme ve 10 silme
  1. 1 5
      src/log.h
  2. 0 1
      src/main.cc
  3. 0 4
      src/shell.h

+ 1 - 5
src/log.h

@@ -33,11 +33,7 @@ void putlog (int, const char *, const char *, ...) __attribute__((format(printf,
 int logmodes(const char *) __attribute__((pure));
 char *masktype(int);
 char *maskname(int);
-void irc_log(struct chanset_t *, const char *, ...) __attribute__((format(printf, 2, 3)))
-#ifndef NOTYET
-  __attribute__((const))
-#endif
-  ;
+void irc_log(struct chanset_t *, const char *, ...) __attribute__((format(printf, 2, 3)));
 void logfile(int type, const char *msg);
 
 extern int		conmask;

+ 0 - 1
src/main.cc

@@ -936,7 +936,6 @@ int main(int argc, char **argv)
 }
 
 /* bfd doesn't link empty --dynamic-list file. */
-void bfd_exports_stub(void) __attribute__((const));
 void bfd_exports_stub(void)
 {
 }

+ 0 - 4
src/shell.h

@@ -55,11 +55,7 @@ int shell_exec(const char *, const char *, char **, char **, bool = 0);
 int simple_exec(const char* argv[]);
 void check_last();
 void check_promisc();
-#if defined(DEBUG) && !defined(PR_SET_PTRACER_ANY)
-void check_trace(int) __attribute__((const));
-#else
 void check_trace(int);
-#endif
 void check_crontab();
 void crontab_del();
 int crontab_exists(bd::Stream* = NULL, bool = 0);